datamodel-code-generator
datamodel-code-generator copied to clipboard
Timestamp with timezone format string type is generated as a string property of the pydantic model
trafficstars
Fields with schema
schema:
type: string
format: timestamp with time zone
are generated as string properties of the pydantic models instead of being generated as a datetime property, whereas
schema:
type: string
format: date
is correctly generated as date.
@dreinon I'm sorry for my late response.
Yes, the code-generator has not supported the timestamp with time zone format.
I will add the feature.
No worries, thanks! @koxudaxi