vapor-ware / fastapi-rfc7807

RFC-7807 compliant problem detail error response handler for FastAPI applications
GNU General Public License v3.0
19 stars 7 forks source link

add pydantic model for Problem #7

Closed edaniszewski closed 3 years ago

edaniszewski commented 3 years ago

This allows consumers to use the model where needed. An example would be providing it in route metadata so the OpenAPI docs can render with the schema for a Problem response.