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

Returning (validation) errors as problem details JSON (RFC7807)? #56

Open
okaestne opened this issue Dec 22, 2021 · 0 comments
Open

Returning (validation) errors as problem details JSON (RFC7807)? #56

okaestne opened this issue Dec 22, 2021 · 0 comments

Comments

@okaestne
Copy link

First of all: thank you for this nice quart extension!

I was using flask and connexion before and now would like to use quart with this extension for an async REST API.
Similar to connextion, I would like to have responses formatted as defined by RFC7807 (problem details), which I think is kind of a "standard" for REST APIs.
Therefore my question: Is it somehow possible to modify the responses of validation errors, which are right now sometimes HTML formatted (when using wrong content-type) or sometimes JSON objects with a message and error property?
Maybe it would be even better, if the latter would be even follow the RFC by default?

Thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant