Skip to content

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

@okaestne

Description

@okaestne

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions