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

Refactor pydantic fundamentals and mixins #39

Closed
devraj opened this issue Aug 29, 2022 · 0 comments
Closed

Refactor pydantic fundamentals and mixins #39

devraj opened this issue Aug 29, 2022 · 0 comments
Assignees

Comments

@devraj
Copy link
Member

devraj commented Aug 29, 2022

utils.py in schema has a number of Mixins, these help with some base assumptions like Identity, Date Time of creation and update of models.

Identity inherits from pydantic BaseModel and creates a method resolution issue.

This pattern should be rethought to also provide a generic implementation of #27

Perhaps a BaseModel provided by the package that has the base configuration requires and Mixin simply add garnish and not provide a BaseModel resolution

@devraj devraj self-assigned this Aug 29, 2022
@devraj devraj closed this as completed Mar 6, 2023
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

1 participant