| [ |
| { |
| "description": "validation of IRI References", |
| "schema": { |
| "$schema": "https://json-schema.org/v1", |
| "format": "iri-reference" |
| }, |
| "tests": [ |
| { |
| "description": "all string formats ignore integers", |
| "data": 12, |
| "valid": true |
| }, |
| { |
| "description": "all string formats ignore floats", |
| "data": 13.7, |
| "valid": true |
| }, |
| { |
| "description": "all string formats ignore objects", |
| "data": {}, |
| "valid": true |
| }, |
| { |
| "description": "all string formats ignore arrays", |
| "data": [], |
| "valid": true |
| }, |
| { |
| "description": "all string formats ignore booleans", |
| "data": false, |
| "valid": true |
| }, |
| { |
| "description": "all string formats ignore nulls", |
| "data": null, |
| "valid": true |
| }, |
| { |
| "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 |
| } |
| ] |
| } |
| ] |