-
-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
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
[python] Panic on Python 3.12 #439
Comments
I can confirm this. Does anyone have a hint for what should be investigated or upgraded? |
We need to update the string definitions to accommodate changes from Python 3.12 - https://github.com/Stranger6667/jsonschema-rs/blob/master/bindings/python/src/string.rs Or, better, reuse some definitions from PyO3. Similar changes in orjson |
I agree. Running test suite reveals the same. INTERNALERROR> JSONSchema.from_str('{"minimum": 5}').validate,
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> ValueError: Invalid string: expected value at line 1 column 1 |
Any updates? |
jsonschema_rs.JSONSchema
with Python 3.12 crashes the interpreter when parsing schemas with strings that contain 113 characters or more.Steps to reproduce (works on Python < 3.12 but crashes on 3.12).
The following snippet does not crash on 3.12 (same schema with fewer characters in
"$id"
).Error printed when running the first snippet.
The text was updated successfully, but these errors were encountered: