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

How to define response code for HTTP #234

Closed
jonaslagoni opened this issue Jan 10, 2024 · 0 comments · Fixed by #235
Closed

How to define response code for HTTP #234

jonaslagoni opened this issue Jan 10, 2024 · 0 comments · Fixed by #235
Labels
enhancement New feature or request

Comments

@jonaslagoni
Copy link
Member

Reason/Context

Right now there are no way to define response codes for a message/operation for HTTP.

Right now I am doing it like this for messages:

...
      HttpCustomersGetMessageResponse:
        description: OK
        payload:
          $ref: '#/components/schemas/CustomerPaginated'
        bindings:
          http:
            x-response-code: 200

However, I think this should be part of the official bindings in some way or form

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