Unify HTTP 400 responses #1595
Labels
area/user-api
Issues or PRs related to the User API
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
kind/bug
Categorizes issue or PR as related to a bug.
priority/backlog
Higher priority than priority/awaiting-more-evidence.
sig/user-experience
Issues or PRs related to the User Experience of our Services, Tools, and Libraries.
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
Describe the bug
User API responds with 400 HTTP status codes for invalid requests. These requests can be invalid on multiple layers though. They can be invalid based on checks that are done in implemented endpoint handlers but also based on schema validation. The schema validation issue reports are handled by connexion and differ from the ones that are implemented by us in the Python code. They do not conform to HTTP 400 schema that is declared on Python endpoints.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The response should be conforming to the OpenAPI spec.
Additional context
I've tried to register a custom flask for 400 or providing a custom connexion validator. None of these worked though - I did not invest much time into this, but it might be nice to have.
The text was updated successfully, but these errors were encountered: