summaryrefslogtreecommitdiff
path: root/json/tests/draft2019-08/optional/format/uri-template.json
diff options
context:
space:
mode:
Diffstat (limited to 'json/tests/draft2019-08/optional/format/uri-template.json')
-rw-r--r--json/tests/draft2019-08/optional/format/uri-template.json30
1 files changed, 30 insertions, 0 deletions
diff --git a/json/tests/draft2019-08/optional/format/uri-template.json b/json/tests/draft2019-08/optional/format/uri-template.json
new file mode 100644
index 0000000..d8396a5
--- /dev/null
+++ b/json/tests/draft2019-08/optional/format/uri-template.json
@@ -0,0 +1,30 @@
+[
+ {
+ "description": "format: uri-template",
+ "schema": {
+ "format": "uri-template"
+ },
+ "tests": [
+ {
+ "description": "a valid uri-template",
+ "data": "http://example.com/dictionary/{term:1}/{term}",
+ "valid": true
+ },
+ {
+ "description": "an invalid uri-template",
+ "data": "http://example.com/dictionary/{term:1}/{term",
+ "valid": false
+ },
+ {
+ "description": "a valid uri-template without variables",
+ "data": "http://example.com/dictionary",
+ "valid": true
+ },
+ {
+ "description": "a valid relative uri-template",
+ "data": "dictionary/{term:1}/{term}",
+ "valid": true
+ }
+ ]
+ }
+]