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

Use pydantic's from_orm to fill in schema values, instead of the schema property on the model classes #98

Open
Tracked by #84
CrsiX opened this issue Mar 1, 2022 · 0 comments
Labels
improvement There's improvment needed with something

Comments

@CrsiX
Copy link
Member

CrsiX commented Mar 1, 2022

This goal may be hard or almost impossible to achieve, since the schemas heavily differ from the database models:

  • the database models have different attribute names than the schemas (e.g. aliases)
  • the schemas provide more attributes than the native database models, which are generated upon instantiation (e.g. refunds)
@CrsiX CrsiX added the improvement There's improvment needed with something label Mar 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement There's improvment needed with something
Projects
None yet
Development

No branches or pull requests

1 participant