Skip to content

Commit 1e2834c

Browse files
committed
draft-06: format "uri-template" tests
1 parent 21b776e commit 1e2834c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tests/draft6/optional/format.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,24 @@
8282
}
8383
]
8484
},
85+
{
86+
"description": "format: uri-template",
87+
"schema": {
88+
"format": "uri-template"
89+
},
90+
"tests": [
91+
{
92+
"description": "a valid uri-template",
93+
"data": "http://example.com/dictionary/{term:1}/{term}",
94+
"valid": true
95+
},
96+
{
97+
"description": "an invalid uri-template",
98+
"data": "http://example.com/dictionary/{term:1}/{term",
99+
"valid": false
100+
}
101+
]
102+
},
85103
{
86104
"description": "validation of e-mail addresses",
87105
"schema": {"format": "email"},

0 commit comments

Comments
 (0)