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

Model input schema validation #53

Merged
merged 12 commits into from
Sep 6, 2023
Merged

Model input schema validation #53

merged 12 commits into from
Sep 6, 2023

Conversation

ianhbell
Copy link
Collaborator

@ianhbell ianhbell commented Sep 6, 2023

Adds validation of JSON for models based upon a schema. The schema is rather complicated, so the pydantic library is used to help with the generation of the schema

Add a validation helper class, cmake stuff. Seems to be a bug in the cmake with the library that you have to add the library first
pydantic is used to help define the schema in a convenient way
This fixes the linking order problems with schema validation, but this seems like a bug, should not matter order of linking the libraries
No additional fields are allowed for any model, perhaps this is a bad idea. Also alpha functions now supported
@ianhbell ianhbell changed the title Schema Model input schema validation Sep 6, 2023
@ianhbell
Copy link
Collaborator Author

ianhbell commented Sep 6, 2023

See #20

@ianhbell ianhbell merged commit 217c578 into main Sep 6, 2023
0 of 9 checks passed
@ianhbell ianhbell deleted the schema branch September 6, 2023 22:01
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