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

Getting Return Code 422 for invalid models expecting 400 #315

Open
bjoernhoeper opened this issue Oct 24, 2024 · 0 comments
Open

Getting Return Code 422 for invalid models expecting 400 #315

bjoernhoeper opened this issue Oct 24, 2024 · 0 comments
Labels
bug Something isn't working server Something to do with the `server` package

Comments

@bjoernhoeper
Copy link

Problem

When you specify a model that is malformed or missing information the server generates a HTTP status code 422 (Unprocessable Content) which is not specified as status code in the Swagger and thus leads to problems with generated clients as the response can not be deserialized.

** Proposed Solution **

Return status code 400 (Bad Request) or trigger adaptation of the specification to accept 422 as status code.

@s-heppner s-heppner added the bug Something isn't working label Oct 24, 2024
@s-heppner s-heppner added the server Something to do with the `server` package label Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working server Something to do with the `server` package
Projects
None yet
Development

No branches or pull requests

2 participants