-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
experimental: Build pydantic from schema
- Loading branch information
JB Lovland
committed
Jan 9, 2024
1 parent
0027e1d
commit a830442
Showing
3 changed files
with
463 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
datamodel-codegen \ | ||
--collapse-root-models \ | ||
--input schema/docs/src/public/fmu_results_090.json \ | ||
--input-file-type "jsonschema" \ | ||
--output-model-type "pydantic_v2.BaseModel" \ | ||
--target-python-version "3.8" \ | ||
--use-double-quotes \ | ||
--use-schema-description \ | ||
--use-standard-collections \ | ||
--use-subclass-enum \ | ||
--use-title-as-name \ | ||
--use-union-operator \ | ||
--use-unique-items-as-set |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,7 @@ dependencies = [ | |
"numpy", | ||
"pandas", | ||
"pyarrow", | ||
"pydantic>=2.0.0", | ||
"PyYAML", | ||
"xtgeo>=2.16", | ||
] | ||
|
Oops, something went wrong.