Skip to content

Conversation

@bburnichon
Copy link
Contributor

When using resolver with a base URI which has an anchored, the resolved URI keep the base URI anchor.

This patch ensures frament part of baseURI is removed before generating URI.

use JsonSchema\Uri\UriResolver;

$resolver = new UriResolver();

echo $resolver->resolve('baz.json', 'http://example.org/foo/bar.json#baz');

// expected: http://example.org/foo/baz.json
// actual:   http://example.org/foo/baz.json#baz

@bburnichon
Copy link
Contributor Author

ping @justinrainbow @bighappyface

@bighappyface
Copy link
Collaborator

Closed with #174

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants