gita/bhagavad-gita-api

think about using https://github.com/tiangolo/pydantic-sqlalchemy

aahnik opened this issue · 2 comments

we are manually creating the pydantic schemas. but the can be auto-generated from the sqlalchemy model

For some of the models, the corresponding schema consists only of a subset of the fields present in the model.

Example:
For the GitaCommentary schema, we are returning just 3 out of 8 fields present in the corresponding model.

Does this library have an option to specify which fields are needed?

the library is still experimental as mentioned in its readme.

besides the readme, I could not find any other docs for the lib.

Does this library have an option to specify which fields are needed?

I think this is not possible.

So, I think let's stick with what code we currently have.