File tree 7 files changed +69
-6
lines changed 7 files changed +69
-6
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,7 @@ This suite is being used by:
99
99
* [ skeemas] ( https://github.com/Prestaul/skeemas )
100
100
* [ tv4] ( https://github.com/geraintluff/tv4 )
101
101
* [ z-schema] ( https://github.com/zaggino/z-schema )
102
+ * [ jsen] ( https://github.com/bugventure/jsen )
102
103
103
104
### .NET ###
104
105
Original file line number Diff line number Diff line change 77
77
"data" : " http://foo.bar/?baz=qux#quux" ,
78
78
"valid" : true
79
79
},
80
+ {
81
+ "description" : " a valid protocol-relative URI" ,
82
+ "data" : " //foo.bar/?baz=qux#quux" ,
83
+ "valid" : true
84
+ },
80
85
{
81
86
"description" : " an invalid URI" ,
82
87
"data" : " \\\\ WINDOWS\\ fileshare" ,
Original file line number Diff line number Diff line change 19
19
"valid" : true
20
20
}
21
21
]
22
+ },
23
+ {
24
+ "description" : " pattern is not anchored" ,
25
+ "schema" : {"pattern" : " a+" },
26
+ "tests" : [
27
+ {
28
+ "description" : " matches a substring" ,
29
+ "data" : " xxaayy" ,
30
+ "valid" : true
31
+ }
32
+ ]
22
33
}
23
34
]
Original file line number Diff line number Diff line change 86
86
},
87
87
"tests" : [
88
88
{
89
- "description" : " slash" ,
89
+ "description" : " slash invalid " ,
90
90
"data" : {"slash" : " aoeu" },
91
91
"valid" : false
92
92
},
93
93
{
94
- "description" : " tilda" ,
94
+ "description" : " tilda invalid " ,
95
95
"data" : {"tilda" : " aoeu" },
96
96
"valid" : false
97
97
},
98
98
{
99
- "description" : " percent" ,
99
+ "description" : " percent invalid " ,
100
100
"data" : {"percent" : " aoeu" },
101
101
"valid" : false
102
+ },
103
+ {
104
+ "description" : " slash valid" ,
105
+ "data" : {"slash" : 123 },
106
+ "valid" : true
107
+ },
108
+ {
109
+ "description" : " tilda valid" ,
110
+ "data" : {"tilda" : 123 },
111
+ "valid" : true
112
+ },
113
+ {
114
+ "description" : " percent valid" ,
115
+ "data" : {"percent" : 123 },
116
+ "valid" : true
102
117
}
103
118
]
104
119
},
Original file line number Diff line number Diff line change 29
29
"data" : " http://foo.bar/?baz=qux#quux" ,
30
30
"valid" : true
31
31
},
32
+ {
33
+ "description" : " a valid protocol-relative URI" ,
34
+ "data" : " //foo.bar/?baz=qux#quux" ,
35
+ "valid" : true
36
+ },
32
37
{
33
38
"description" : " an invalid URI" ,
34
39
"data" : " \\\\ WINDOWS\\ fileshare" ,
Original file line number Diff line number Diff line change 19
19
"valid" : true
20
20
}
21
21
]
22
+ },
23
+ {
24
+ "description" : " pattern is not anchored" ,
25
+ "schema" : {"pattern" : " a+" },
26
+ "tests" : [
27
+ {
28
+ "description" : " matches a substring" ,
29
+ "data" : " xxaayy" ,
30
+ "valid" : true
31
+ }
32
+ ]
22
33
}
23
34
]
Original file line number Diff line number Diff line change 86
86
},
87
87
"tests" : [
88
88
{
89
- "description" : " slash" ,
89
+ "description" : " slash invalid " ,
90
90
"data" : {"slash" : " aoeu" },
91
91
"valid" : false
92
92
},
93
93
{
94
- "description" : " tilda" ,
94
+ "description" : " tilda invalid " ,
95
95
"data" : {"tilda" : " aoeu" },
96
96
"valid" : false
97
97
},
98
98
{
99
- "description" : " percent" ,
99
+ "description" : " percent invalid " ,
100
100
"data" : {"percent" : " aoeu" },
101
101
"valid" : false
102
+ },
103
+ {
104
+ "description" : " slash valid" ,
105
+ "data" : {"slash" : 123 },
106
+ "valid" : true
107
+ },
108
+ {
109
+ "description" : " tilda valid" ,
110
+ "data" : {"tilda" : 123 },
111
+ "valid" : true
112
+ },
113
+ {
114
+ "description" : " percent valid" ,
115
+ "data" : {"percent" : 123 },
116
+ "valid" : true
102
117
}
103
118
]
104
119
},
You can’t perform that action at this time.
0 commit comments