Closed playpauseandstop closed 3 months ago
Hi. I happen to be seeing this issue while doing a general GitHub search -- can I ask if there's anything I can do to make it even clearer that these are private and can change without warning? They follow Python conventions (beginning with an underscore) -- and they also have trivial replacements (specifically the VALIDATORS
attribute on a Validator
is the way to access functions which validate particular keywords, and there's no reason to call load_schema
outside of the package itself, you should use importlib.resources
).
It's the first time seeing this package (congrats on writing it) -- so just my 0.02, but I wouldn't be trying to pin jsonschema
from above if it were me, I'd simply ensure you were using public APIs instead of private ones. Happy to answer questions if needed.
@Julian
Sure! You’re completely right, but the problem here that my library requires an ancient version of other library, which at same time uses private capabilities of jsonschema. Cause of that & before I’ll be able to spend sometime for upgrading to moat recent version of that external library, I’ll create the upper boundary for the jsonschema here.
Hope it makes sense for you, but once again in ideal world I’d go as you suggested 🙏
As
jsonschema==~4.18
will result in,And
jsonschema==~4.19
will result in,