Skip to content

Commit

Permalink
Merge branch 'main' into baz/doaf-make-extract-output-optional
Browse files Browse the repository at this point in the history
  • Loading branch information
bnchrch authored Jan 22, 2025
2 parents f8c45cc + d04ea8a commit 2364ce7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions protocol-models/bin/generate-python-dataclasses.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ for f in "$ROOT_DIR/$YAML_DIR"/*.yaml; do
echo "from .$filename_wo_ext import *" >> "$ROOT_DIR/$OUTPUT_DIR"/__init__.py

datamodel-codegen \
--input-file-type jsonschema \
--input "$ROOT_DIR/$YAML_DIR/$filename_wo_ext.yaml" \
--output "$ROOT_DIR/$OUTPUT_DIR/$filename_wo_ext.py" \
--output-model-type dataclasses.dataclass \
Expand Down
1 change: 1 addition & 0 deletions protocol-models/bin/generate-python-pydantic-v2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ for f in "$ROOT_DIR/$YAML_DIR"/*.yaml; do
echo "from .$filename_wo_ext import *" >> "$ROOT_DIR/$OUTPUT_DIR"/__init__.py

datamodel-codegen \
--input-file-type jsonschema \
--input "$ROOT_DIR/$YAML_DIR/$filename_wo_ext.yaml" \
--output "$ROOT_DIR/$OUTPUT_DIR/$filename_wo_ext.py" \
--output-model-type pydantic_v2.BaseModel \
Expand Down

0 comments on commit 2364ce7

Please sign in to comment.