Skip to content

Commit 84f8cb5

Browse files
committed
Explicitly mark input files as jsonschema
1 parent d14cffb commit 84f8cb5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

protocol-models/bin/generate-python-pydantic-v2.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ for f in "$ROOT_DIR/$YAML_DIR"/*.yaml; do
2727
echo "from .$filename_wo_ext import *" >> "$ROOT_DIR/$OUTPUT_DIR"/__init__.py
2828

2929
datamodel-codegen \
30+
--input-file-type jsonschema \
3031
--input "$ROOT_DIR/$YAML_DIR/$filename_wo_ext.yaml" \
3132
--output "$ROOT_DIR/$OUTPUT_DIR/$filename_wo_ext.py" \
3233
--output-model-type pydantic_v2.BaseModel \

0 commit comments

Comments
 (0)