-
-
Notifications
You must be signed in to change notification settings - Fork 2
Adopt the new x-format-assertion annotation keyword
#93
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
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "$schema": "https://json-schema.org/draft/2020-12/schema", | ||
| "title": "RFC 3987 Internationalized Resource Identifier (IRI) reference", | ||
| "description": "An Internationalized Resource Identifier (IRI) reference", | ||
| "examples": [ | ||
| "https://example.com/path/to/resource?query=value#section", | ||
| "https://пример.рф/путь", | ||
| "../parent/fichier-é.html", | ||
| "//cdn.example.com/assets/style.css", | ||
| "?query=é#fragment" | ||
| ], | ||
| "x-format-assertion": true, | ||
| "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", | ||
| "x-links": [ "https://www.rfc-editor.org/rfc/rfc3987#section-2.2" ], | ||
| "type": "string", | ||
| "format": "iri-reference" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| { | ||
| "$schema": "https://json-schema.org/draft/2020-12/schema", | ||
| "title": "RFC 3987 Internationalized Resource Identifier (IRI)", | ||
| "description": "A unique sequence of characters from the Universal Character Set that identifies an abstract or physical resource", | ||
| "examples": [ | ||
| "https://example.com/path/to/resource?query=value#section", | ||
| "https://例え.jp/パス?クエリ=値#フラグメント", | ||
| "http://www.example.com/édition.html", | ||
| "mailto:usér@example.com" | ||
| ], | ||
| "x-format-assertion": true, | ||
| "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", | ||
| "x-links": [ "https://www.rfc-editor.org/rfc/rfc3987#section-2" ], | ||
| "type": "string", | ||
| "format": "iri" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,18 +1,23 @@ | ||
| { | ||
| "$schema": "https://json-schema.org/draft/2020-12/schema", | ||
| "title": "W3C XML Schema anyURI", | ||
| "description": "The anyURI datatype represents a Uniform Resource Identifier Reference (URI) (§3.2.17)", | ||
| "description": "The anyURI datatype represents an Internationalized Resource Identifier (IRI) reference as defined in RFC 3987, either absolute or relative (§3.3.17)", | ||
| "examples": [ | ||
| "http://www.example.com", | ||
| "https://www.example.com/path/to/resource", | ||
| "ftp://ftp.example.com/file.txt", | ||
| "mailto:user@example.com", | ||
| "../relative/path.html", | ||
| "http://www.example.com/path#fragment", | ||
| "http://www.example.com/édition.html", | ||
| "https://例え.jp/パス", | ||
| "urn:isbn:0-395-36341-1", | ||
| "" | ||
| ], | ||
| "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", | ||
| "x-links": [ "https://www.w3.org/TR/xmlschema-2/#anyURI" ], | ||
| "$ref": "../../../ietf/uri/uri-reference.json" | ||
| "x-links": [ | ||
| "https://www.w3.org/TR/xmlschema11-2/#anyURI", | ||
| "https://www.w3.org/TR/xmlschema-2/#anyURI" | ||
| ], | ||
| "$ref": "../../../ietf/uri/iri-reference.json" | ||
|
jviotti marked this conversation as resolved.
|
||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,101 @@ | ||
| { | ||
| "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", | ||
| "target": "../../../schemas/2020-12/ietf/uri/iri-reference.json", | ||
| "tests": [ | ||
| { | ||
| "description": "Plain ASCII absolute URI", | ||
| "data": "https://example.com/path?query=value#fragment", | ||
| "valid": true | ||
| }, | ||
| { | ||
| "description": "Absolute IRI with non-ASCII host and path", | ||
| "data": "https://例え.jp/パス", | ||
| "valid": true | ||
| }, | ||
| { | ||
| "description": "Relative path with non-ASCII characters", | ||
| "data": "../parent/fichier-é.html", | ||
| "valid": true | ||
| }, | ||
| { | ||
| "description": "Network-path reference with non-ASCII host", | ||
| "data": "//пример.рф/путь", | ||
| "valid": true | ||
| }, | ||
| { | ||
| "description": "Relative path without dot segments", | ||
| "data": "относительный/путь", | ||
| "valid": true | ||
| }, | ||
| { | ||
| "description": "Query and fragment only", | ||
| "data": "?query=é#fragment", | ||
| "valid": true | ||
| }, | ||
| { | ||
| "description": "Empty string (same-document reference)", | ||
| "data": "", | ||
| "valid": true | ||
| }, | ||
| { | ||
| "description": "Absolute path reference", | ||
| "data": "/absolute/path/to/resource", | ||
| "valid": true | ||
| }, | ||
| { | ||
| "description": "Colon allowed after the first segment", | ||
| "data": "./foo:bar", | ||
| "valid": true | ||
| }, | ||
| { | ||
| "description": "Space in path", | ||
| "data": "with space", | ||
| "valid": false | ||
| }, | ||
| { | ||
| "description": "Malformed percent-encoding", | ||
| "data": "%ZZ", | ||
| "valid": false | ||
| }, | ||
| { | ||
| "description": "Path starting with colon (first segment must not contain a colon)", | ||
| "data": ":path", | ||
| "valid": false | ||
| }, | ||
| { | ||
| "description": "Path with brackets (gen-delims must be percent-encoded)", | ||
| "data": "path[with]brackets", | ||
| "valid": false | ||
| }, | ||
| { | ||
| "description": "Fragment with hash in value (hash not allowed within a fragment)", | ||
| "data": "#fragment#with#hashes", | ||
| "valid": false | ||
| }, | ||
| { | ||
| "description": "Number is not an IRI reference", | ||
| "data": 123, | ||
| "valid": false | ||
| }, | ||
| { | ||
| "description": "Boolean is not an IRI reference", | ||
| "data": true, | ||
| "valid": false | ||
| }, | ||
| { | ||
| "description": "Null is not an IRI reference", | ||
| "data": null, | ||
| "valid": false | ||
| }, | ||
| { | ||
| "description": "Object is not an IRI reference", | ||
| "data": {}, | ||
| "valid": false | ||
| }, | ||
| { | ||
| "description": "Array is not an IRI reference", | ||
| "data": [], | ||
| "valid": false | ||
| } | ||
| ] | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.