Skip to content

Commit 135d461

Browse files
committed
Add pydantic model generation to gen-python
1 parent 6f2b71b commit 135d461

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

template/justfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,10 @@ gen-doc:
9999
[group('model development')]
100100
testdoc: gen-doc _serve
101101

102-
# Generate the Python data model
102+
# Generate the Python data models (dataclasses & pydantic)
103103
gen-python:
104104
poetry run gen-project -d {{pymodel}} -I python {{source_schema_path}}
105+
poetry run gen-pydantic {{gen_pydantic_args}} {{source_schema_path}} > {{pymodel}}/{{schema_name}}_pydantic.py
105106

106107
# Generate project files including Python data model
107108
[group('model development')]

0 commit comments

Comments
 (0)