Open
Description
Is your feature request related to a problem? Please describe.
When I am creating fields with type string, and format "date" I would like them to be typed as python datetime.date
"birth_date": {
"type": "string",
"format": "date"
},
Describe the solution you'd like
Logic in type_converter when, with orjson enabled, types are generated as "datetime.date".
Describe alternatives you've considered
Potentially some other hooks or injectable logic inside type_converter that could allow a developer to inject or otherwise override type generation. This could be some kind of type registry.
Additional context
I am generating schema for date types that do not have time component, and would be incorrect to use datetime type.
Metadata
Metadata
Assignees
Labels
No labels