Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore fragments in schema caching. Fixes #233 #234

Merged
merged 1 commit into from
Feb 23, 2015

Conversation

jphastings
Copy link
Contributor

If the URIs used in a $ref are absolute, but include fragments, then the fragment is not removed when the validator searches its cache to see what schemas are loaded, leading to duplication of schemas in the cache.

This code & test fixes that issue.

@iainbeeston
Copy link
Contributor

Good catch! But can we put the fix in absolutize_ref_uri, after ref_uri is assigned (instead of after absolutize_ref_uri is called)

@RST-J Do you think we should roll this into the 2.5.1 release? (It gets my vote)

@RST-J
Copy link
Contributor

RST-J commented Feb 23, 2015

Yes, let's add this.

RST-J added a commit that referenced this pull request Feb 23, 2015
Ignore fragments in schema caching. Fixes #233
@RST-J RST-J merged commit fadc4b1 into voxpupuli:master Feb 23, 2015
@jphastings
Copy link
Contributor Author

Cheers guys, glad to have helped!

@jphastings jphastings deleted the fragment branch February 24, 2015 14:00
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.

None yet

3 participants