Skip to content

Commit

Permalink
Add --allow-extra-fields to the command (#35)
Browse files Browse the repository at this point in the history
Co-authored-by: Valerii Mironchenko <vmironchenko@provectus.com>
  • Loading branch information
ValeriyWorld and Valerii Mironchenko committed May 10, 2024
1 parent 8e16cfe commit 25585d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
generate_models: generate_entities generate_metrics

generate_entities:
datamodel-codegen --input ./opendatadiscovery-specification/specification/entities.yaml --output odd_models/models/models.py --input-file-type openapi --output-model-type pydantic_v2.BaseModel
datamodel-codegen --input ./opendatadiscovery-specification/specification/entities.yaml --output odd_models/models/models.py --input-file-type openapi --output-model-type pydantic_v2.BaseModel --allow-extra-fields
generate_metrics:
datamodel-codegen --input ./opendatadiscovery-specification/specification/metrics.yaml --output odd_models/models/metrics.py --input-file-type openapi --output-model-type pydantic_v2.BaseModel
generate_client:
Expand Down

0 comments on commit 25585d6

Please sign in to comment.