Skip to content

Commit a7796b3

Browse files
committed
Build types, improve python optinons
1 parent 79524bc commit a7796b3

File tree

4 files changed

+148
-122
lines changed

4 files changed

+148
-122
lines changed

Containers/Containerfile-python-codegen

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ RUN datamodel-codegen --input api.json --input-file-type openapi --output /app/m
1313
--output-model-type pydantic_v2.BaseModel \
1414
--target-python-version 3.11 \
1515
--field-constraints \
16-
--disable-timestamp
16+
--disable-timestamp \
17+
--use-union-operator \
18+
--use-schema-description \
19+
--use-title-as-name
1720

1821
CMD ["cat", "/app/models.py"]

0 commit comments

Comments
 (0)