-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
support relative URIs per RFC1808 and RFC3986 #105
Comments
or at least leading .. |
@coderextreme Could you elaborate on your request? I don't see any use of relative paths in your examples. Is this in regards to remote |
No, it's not remote refs, It's properties (@url, @*Url) marked as "format": "uri" in my schema. I need to validate URI's in my documents, and documents with a URI of .. don't pass. I have overridden the URI format for now. Thanks! |
The following works fine for me: var validate = require('is-my-json-valid')({type: 'string', format: 'uri'})
validate('http://hello.world/../hello.txt') // true |
@emilbayes @coderextreme format "uri" was poorly specified in draft-04. Technially, it indicates a full URI (with scheme). The "uri-reference" format added in draft-06 is what would handle |
I'm going to close this. Well maybe not through the iPad app :( |
We could add Line 16 in 441f812
|
Need to support leading . and .. for "format" : "uri"
The text was updated successfully, but these errors were encountered: