Skip to content

400 (HttpBadRequest) and other responses are not documented via fastapi #11

@Artoria2e5

Description

@Artoria2e5

The current api/Swagger page claims that request only fail by returning a 422 Validation Error, but the code makes use of a bunch of things from api/exceptions.py. These possibilities should perhaps be documented through a responses= in the decorator in addition to the regular response_model, or just globally on the router object constructed at the start of view/*.py.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions