avian2 / jsonmerge

Merge a series of JSON documents.
MIT License
217 stars 25 forks source link

DeprecationWarning / Draft4Validator.resolver is deprecated #68

Open 0x26res opened 4 months ago

0x26res commented 4 months ago

I've started seeing this deprecation warning when running jsonmerge:

 opt/venv/lib/python3.11/site-packages/jsonmerge/__init__.py:27: DeprecationWarning: Accessing Draft4Validator.resolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization.
    self.resolver = merger.validator.resolver
avian2 commented 3 months ago

Related to deprecated RefResolver API #64