File tree Expand file tree Collapse file tree 2 files changed +44
-2
lines changed Expand file tree Collapse file tree 2 files changed +44
-2
lines changed Original file line number Diff line number Diff line change 4
4
" additionalProperties being false does not allow other properties" ,
5
5
"schema" : {
6
6
"properties" : {"foo" : {}, "bar" : {}},
7
- "patternProperties" : { "^v" : {} },
7
+ "patternProperties" : { "^v" : {}, "^á" : {} },
8
8
"additionalProperties" : false
9
9
},
10
10
"tests" : [
40
40
}
41
41
]
42
42
},
43
+ {
44
+ "description" : " using non-ascii regex additionalProperties being false does not allow other properties " ,
45
+ "schema" : {
46
+ "patternProperties" : {
47
+ "^á" : {}
48
+ },
49
+ "additionalProperties" : false
50
+ },
51
+ "tests" : [
52
+ {
53
+ "description" : " non-ascii patternProperties matching the pattern is valid" ,
54
+ "data" : {"ármányos" : 2 },
55
+ "valid" : true
56
+ },
57
+ {
58
+ "description" : " additional non-ascii patternProperties not matching the pattern is invalid" ,
59
+ "data" : {"élmény" : 2 },
60
+ "valid" : false
61
+ }
62
+ ]
63
+ },
43
64
{
44
65
"description" :
45
66
" additionalProperties allows a schema which should validate" ,
Original file line number Diff line number Diff line change 4
4
" additionalProperties being false does not allow other properties" ,
5
5
"schema" : {
6
6
"properties" : {"foo" : {}, "bar" : {}},
7
- "patternProperties" : { "^v" : {} },
7
+ "patternProperties" : { "^v" : {}, "^é" : {} },
8
8
"additionalProperties" : false
9
9
},
10
10
"tests" : [
40
40
}
41
41
]
42
42
},
43
+ {
44
+ "description" : " using non-ascii regex additionalProperties being false does not allow other properties " ,
45
+ "schema" : {
46
+ "patternProperties" : {
47
+ "^á" : {}
48
+ },
49
+ "additionalProperties" : false
50
+ },
51
+ "tests" : [
52
+ {
53
+ "description" : " non-ascii patternProperties matching the pattern is valid" ,
54
+ "data" : {"ármányos" : 2 },
55
+ "valid" : true
56
+ },
57
+ {
58
+ "description" : " additional non-ascii patternProperties not matching the pattern is invalid" ,
59
+ "data" : {"élmény" : 2 },
60
+ "valid" : false
61
+ }
62
+ ]
63
+ },
43
64
{
44
65
"description" :
45
66
" additionalProperties allows a schema which should validate" ,
You can’t perform that action at this time.
0 commit comments