How to recognize datetime type when generating model from JSON #2174
Replies: 1 comment
-
|
Not currently possible. The genson library used for raw JSON inference doesn't detect datetime formats. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to generate a pydantic model from a JSON file, not a schema.
Is it possible to create the JSON in such a way that the code generator can recognize that a field should be of type "datetime" in the resulting model?
Beta Was this translation helpful? Give feedback.
All reactions