-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable DatasetRef JSON serialization via pydantic
Retain the from_json/to_json and from_simple/to_simple APIs that use universe/registry/minimal parameters but instead make the simple form return a class that is a pydantic model. This allows the JSON to be validated through pydantic. This has required a change to the DatasetType minimal form and DimensionGraph form since pydantic seemingly requires all models are dicts.
- Loading branch information
Showing
4 changed files
with
149 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.