The UriResolver appends the fragment to the path without a leading ? causing an incorrect URL.
Ex: http://example.org/?rest=/route becomes http://example.org/rest=/route.
https://github.com/justinrainbow/json-schema/blob/master/src/JsonSchema/Uri/UriResolver.php#L65
Happy to submit a patch.