Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Tracked by #5
aahnik opened this issue Jun 30, 2021 · 2 comments
Closed
Tracked by #5

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

aahnik opened this issue Jun 30, 2021 · 2 comments

Comments

@aahnik
Copy link
Member

aahnik commented Jun 30, 2021

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

@aahnik aahnik mentioned this issue Jun 30, 2021
11 tasks
@samanyougarg
Copy link
Member

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?

@aahnik
Copy link
Member Author

aahnik commented Jul 2, 2021

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.

@aahnik aahnik closed this as completed Jul 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants