@@ -199,12 +199,17 @@ generate-models: check-warn ## Generate Pydantic Models
199199 --input-file-type openapi \
200200 --output ./layer/nrlf/producer/fhir/r4/model.py \
201201 --output-model-type " pydantic_v2.BaseModel"
202- poetry run datamodel-codegen --strict-types {str,bytes,int,float,bool} \
203- --input ./api/producer/swagger.yaml --input-file-type openapi \
204- --output ./layer/nrlf/producer/fhir/r4/strict_model.py --output-model-type " pydantic_v2.BaseModel"
202+ poetry run datamodel-codegen \
203+ --strict-types {str,bytes,int,float,bool} \
204+ --input ./api/producer/swagger.yaml \
205+ --input-file-type openapi \
206+ --output ./layer/nrlf/producer/fhir/r4/strict_model.py \
207+ --output-model-type " pydantic_v2.BaseModel"
205208
206209 @echo "Generating consumer model"
207210 mkdir -p ./layer/nrlf/consumer/fhir/r4
208211 poetry run datamodel-codegen \
209- --input ./api/consumer/swagger.yaml --input-file-type openapi \
210- --output ./layer/nrlf/consumer/fhir/r4/model.py --output-model-type "pydantic_v2.BaseModel"
212+ --input ./api/consumer/swagger.yaml \
213+ --input-file-type openapi \
214+ --output ./layer/nrlf/consumer/fhir/r4/model.py \
215+ --output-model-type "pydantic_v2.BaseModel"
0 commit comments