networknt / json-schema-validator

A fast Java JSON schema validator that supports draft V4, V6, V7, V2019-09 and V2020-12
Apache License 2.0
800 stars 320 forks source link

Fix iri, iri-reference, uri and uri-reference #1071

Closed justin-tay closed 2 weeks ago

justin-tay commented 2 weeks ago

Closes #1070

This fixes iri, iri-reference, uri and uri-reference formats to allow inputs conforming to RFC 3986 / RFC 3987 for which URI will throw a syntax error as it implements RFC 2396.

In particular inputs like http://, // and about: are now accepted.

A more complete and proper fix will likely require an additional library like Apache Jena IRI but will defer this until it is really needed.