Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AsyncAPI http-kafka header overrides support #1141

Closed
jfallows opened this issue Jul 10, 2024 · 0 comments · Fixed by #1147
Closed

AsyncAPI http-kafka header overrides support #1141

jfallows opened this issue Jul 10, 2024 · 0 comments · Fixed by #1147
Labels
enhancement New feature or request

Comments

@jfallows
Copy link
Contributor

jfallows commented Jul 10, 2024

Add support for http-kafka header overrides.

Example:

operations:
  doStreampayPayCommand:
    action: send
    channel:
      $ref: '#/channels/streampay-pay'
    bindings:
      http:
        method: POST
      x-zilla-http-kafka:
        overrides:
          zilla:domain-model: PayCommand
          zilla:identity: {identity}
    messages:
      - $ref: '#/channels/streampay-pay/messages/StreampayPay.message'

results in

    routes:
      - when:
          - method: POST
            path: /pay
        exit: kafka_cache_client0
        with:
          capability: produce
          reply-to: replies
          topic: commands
          key: ${idempotencyKey}
          overrides:
            zilla:domain-model: PayCommand
            zilla:identity: ${guarded['<guard-name>'].identity}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant