java-json-tools/json-schema-core

URI normalization fails with "opaque" URIs

fge opened this issue · 1 comments

fge commented

Original bug: java-json-tools/json-schema-validator#119

As defined by the URI javadoc:

A URI is opaque if, and only if, it is absolute and its scheme-specific part does not begin with a slash character ('/'). An opaque URI has a scheme, a scheme-specific part, and possibly a fragment; all other components are undefined.

URNs are such examples of opaque URIs. Building a URI with the existing normalization method gives a URISyntaxException.

fge commented

Fixed.