Closed aMarcireau closed 4 months ago
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?
using jsonschema-rs
with version 3.12 is difficult. No releases with wheel for 3.12 and this bug. don't know rust and can't help with this issue. We can't upgrade python version in our project =(
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.