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

[Draft] Add Pydantic models to IIB #597

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

xDaile
Copy link
Contributor

@xDaile xDaile commented Dec 7, 2023

Checks from the 'from_json' method were moved to Pydantic models.
Leftovers from 'from_json' methods can be seen in 'from_json_replacement' methods, which could be rewritten into one common method as seen in "from_json_replacement_even_shorter".

Some inheritance would also be possible in pydantic_models.py.

@xDaile xDaile force-pushed the pydantic branch 2 times, most recently from 7a6a734 to 7f34604 Compare December 8, 2023 08:20
@xDaile xDaile changed the title Add Pydantic models to IIB [Draft] Add Pydantic models to IIB Dec 8, 2023
@xDaile xDaile force-pushed the pydantic branch 4 times, most recently from d69a673 to bbd3201 Compare December 8, 2023 13:43
iib/web/models.py Outdated Show resolved Hide resolved
@xDaile xDaile force-pushed the pydantic branch 6 times, most recently from 87d221c to 8a5a898 Compare December 11, 2023 08:01
iib/web/models.py Outdated Show resolved Hide resolved
@xDaile xDaile force-pushed the pydantic branch 4 times, most recently from 819b658 to 817c252 Compare January 14, 2024 21:27
@xDaile xDaile force-pushed the pydantic branch 4 times, most recently from c93bc96 to 99cb767 Compare February 5, 2024 10:55
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

Successfully merging this pull request may close these issues.

1 participant