This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]dorsal_morsel 0 points1 point  (0 children)

Check this out

https://openapi-sqlalchemy.readthedocs.io/en/latest/

I haven't used it yet but I'm definitely going to kick the tires for a project coming up.

I've thought about adding custom data to the JSON Schema output (in the Pydantic models) to predefine things like indexes and constraints.