diff options
Diffstat (limited to 'json/tests/draft2019-08/optional/format/iri-reference.json')
-rw-r--r-- | json/tests/draft2019-08/optional/format/iri-reference.json | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/json/tests/draft2019-08/optional/format/iri-reference.json b/json/tests/draft2019-08/optional/format/iri-reference.json new file mode 100644 index 0000000..1fd779c --- /dev/null +++ b/json/tests/draft2019-08/optional/format/iri-reference.json @@ -0,0 +1,43 @@ +[ + { + "description": "validation of IRI References", + "schema": {"format": "iri-reference"}, + "tests": [ + { + "description": "a valid IRI", + "data": "http://ƒøø.ßår/?∂éœ=πîx#πîüx", + "valid": true + }, + { + "description": "a valid protocol-relative IRI Reference", + "data": "//ƒøø.ßår/?∂éœ=πîx#πîüx", + "valid": true + }, + { + "description": "a valid relative IRI Reference", + "data": "/âππ", + "valid": true + }, + { + "description": "an invalid IRI Reference", + "data": "\\\\WINDOWS\\filëßåré", + "valid": false + }, + { + "description": "a valid IRI Reference", + "data": "âππ", + "valid": true + }, + { + "description": "a valid IRI fragment", + "data": "#ƒrägmênt", + "valid": true + }, + { + "description": "an invalid IRI fragment", + "data": "#ƒräg\\mênt", + "valid": false + } + ] + } +] |