factset / quart-openapi

Module for Quart to add Flask-RESTPlus like functionality
https://factset.github.io/quart-openapi/
Other
82 stars 22 forks source link

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

Open okaestne opened 2 years ago

okaestne commented 2 years ago

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