We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
With the example schema from the tutorial here: https://jsontypedef.com/docs/python-codegen/
{ "properties": { "id": { "type": "string" }, "createdAt": { "type": "timestamp" }, "karma": { "type": "int32" }, "isAdmin": { "type": "boolean" } } }
Python 3.11 is happy:
$ conda activate py311 $ python --version Python 3.11.8 $ python py/__init__.py # (Quiet; prints nothing)
Python 3.12 issues this SyntaxWarning about the regex used for the datetime:
SyntaxWarning
datetime
$ conda activate py312 $ python --version Python 3.12.2 $ python py/__init__.py .../py/__init__.py:58: SyntaxWarning: invalid escape sequence '\d' datetime_re = '^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(\.\d+)?([zZ]|((\+|-)(\d{2}):(\d{2})))$'
The text was updated successfully, but these errors were encountered:
No branches or pull requests
With the example schema from the tutorial here:
https://jsontypedef.com/docs/python-codegen/
Python 3.11 is happy:
Python 3.12 issues this
SyntaxWarning
about the regex used for thedatetime
:The text was updated successfully, but these errors were encountered: