We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d14cffb commit 84f8cb5Copy full SHA for 84f8cb5
protocol-models/bin/generate-python-pydantic-v2.sh
@@ -27,6 +27,7 @@ for f in "$ROOT_DIR/$YAML_DIR"/*.yaml; do
27
echo "from .$filename_wo_ext import *" >> "$ROOT_DIR/$OUTPUT_DIR"/__init__.py
28
29
datamodel-codegen \
30
+ --input-file-type jsonschema \
31
--input "$ROOT_DIR/$YAML_DIR/$filename_wo_ext.yaml" \
32
--output "$ROOT_DIR/$OUTPUT_DIR/$filename_wo_ext.py" \
33
--output-model-type pydantic_v2.BaseModel \
0 commit comments