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

HttpApi: Allow different response schemas for different status codes #3713

Open
fubhy opened this issue Oct 1, 2024 · 0 comments · May be fixed by #3794
Open

HttpApi: Allow different response schemas for different status codes #3713

fubhy opened this issue Oct 1, 2024 · 0 comments · May be fixed by #3794
Labels
enhancement New feature or request

Comments

@fubhy
Copy link
Member

fubhy commented Oct 1, 2024

What is the problem this feature would solve?

Some APIs rightfully respond with different payloads for the 2xx status code spectrum. Currently, the HttpApi module only accounts for a single success schema.

What is the feature you are proposing to solve the problem?

Multiple success schemas should be possible (just like multiple error schemas). Currently, it is e.g not possible to apply different response schemas for different status codes.

What alternatives have you considered?

No response

@fubhy fubhy added the enhancement New feature or request label Oct 1, 2024
@tim-smart tim-smart linked a pull request Oct 17, 2024 that will close this issue
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