Skip to content

Commit

Permalink
fix: add --output-datetime-class AwareDatetime to datamodel-codegen (
Browse files Browse the repository at this point in the history
…#27)

this was a regression introduced by datamodel-codengen bump

Co-authored-by: Konstantin <konstantin.klein+github@hochfrequenz.de>
  • Loading branch information
hf-kklein and Konstantin authored Nov 15, 2024
1 parent e54a9c0 commit 6c43be2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/maloident/v1/_autogenerated.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# generated by datamodel-codegen:
# filename: openapi.yml
# timestamp: 2024-10-02T12:07:18+00:00
# timestamp: 2024-11-15T10:02:37+00:00

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ deps =
.[formatting]
.[codegen]
commands =
datamodel-codegen --encoding utf-8 --input openapi/v1/openapi.yml --output src/maloident/v1/_autogenerated.py --input-file-type openapi --output-model-type pydantic_v2.BaseModel
datamodel-codegen --encoding utf-8 --input openapi/v1/openapi.yml --output src/maloident/v1/_autogenerated.py --input-file-type openapi --output-model-type pydantic_v2.BaseModel --output-datetime-class AwareDatetime
black src/maloident/v1/_autogenerated.py
isort src/maloident/v1/_autogenerated.py

Expand Down

0 comments on commit 6c43be2

Please sign in to comment.