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

Add Pydantic models #15

Merged
merged 9 commits into from
Nov 4, 2022
Merged

Add Pydantic models #15

merged 9 commits into from
Nov 4, 2022

Conversation

VictoriaBeilsten-Edmands
Copy link
Collaborator

Use Pydantic BaseModels, change IntEnums to Enums and use generic types in type hints

@VictoriaBeilsten-Edmands VictoriaBeilsten-Edmands changed the title Add pydantic models Add Pydantic models Nov 2, 2022
PeterC-DLS and others added 6 commits November 2, 2022 15:18
Add some tests too
Add configurations for black and flake8, switch to format to plain string, change non-membership test add missing comma, and reformat code
Use parametrize, and update to use content keyword to avoid warnings
@PeterC-DLS
Copy link
Contributor

Need to remove py-ts-interfaces dependencies now. Could export JSON schemas and use a Typescript generator from that.

@VictoriaBeilsten-Edmands VictoriaBeilsten-Edmands merged commit fe328a9 into main Nov 4, 2022
@VictoriaBeilsten-Edmands VictoriaBeilsten-Edmands deleted the add-pydantic-models branch November 4, 2022 09:38
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.

None yet

2 participants