Skip to content

Commit 6c43be2

Browse files
hf-kkleinKonstantin
andauthored
fix: add --output-datetime-class AwareDatetime to datamodel-codegen (#27)
this was a regression introduced by datamodel-codengen bump Co-authored-by: Konstantin <konstantin.klein+github@hochfrequenz.de>
1 parent e54a9c0 commit 6c43be2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/maloident/v1/_autogenerated.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# generated by datamodel-codegen:
22
# filename: openapi.yml
3-
# timestamp: 2024-10-02T12:07:18+00:00
3+
# timestamp: 2024-11-15T10:02:37+00:00
44

55
from __future__ import annotations
66

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ deps =
7575
.[formatting]
7676
.[codegen]
7777
commands =
78-
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
78+
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
7979
black src/maloident/v1/_autogenerated.py
8080
isort src/maloident/v1/_autogenerated.py
8181

0 commit comments

Comments
 (0)