json-schema-validator icon indicating copy to clipboard operation
json-schema-validator copied to clipboard

Since 1.3.0: URIFactory is gone. Any migration guide?

Open flozano opened this issue 1 year ago • 1 comments

It looks like a major version should have been used, this seems like a major change to me.

Is there any guide about how to proceed to upgrade?

flozano avatar Feb 04 '24 17:02 flozano

The following are removed and replaced by SchemaLoader and SchemaMapper.

  • URIFactory - No replacement. The resolve logic is in AbsoluteIRI.
  • URISchemeFactory - No replacement as URIFactory isn't required anymore.
  • URISchemeFetcher - No replacement. The SchemaLoaders are iterated and called.
  • URITranslator - Replaced by SchemaMapper.
  • URLFactory - No replacement as URIFactory isn't required anymore.
  • URLFetcher - Replaced by UriSchemaLoader.
  • URNURIFactory - No replacement as URIFactory isn't required anymore.

You can also see Customizing schema retrieval.

justin-tay avatar Feb 05 '24 00:02 justin-tay