File tree Expand file tree Collapse file tree 1 file changed +55
-0
lines changed
tests/JsonSchema/Tests/Constraints Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Original file line number Diff line number Diff line change @@ -82,10 +82,29 @@ public function getValidTests()
82
82
),
83
83
'someotherobject ' => array (
84
84
'foobar ' => 1234 ,
85
+ ),
86
+ '/products ' => array (
87
+ 'get ' => array ()
88
+ ),
89
+ '#products ' => array (
90
+ 'get ' => array ()
91
+ ),
92
+ '+products ' => array (
93
+ 'get ' => array ()
94
+ ),
95
+ '~products ' => array (
96
+ 'get ' => array ()
97
+ ),
98
+ '*products ' => array (
99
+ 'get ' => array ()
100
+ ),
101
+ '%products ' => array (
102
+ 'get ' => array ()
85
103
)
86
104
)),
87
105
json_encode (array (
88
106
'type ' => 'object ' ,
107
+ 'additionalProperties ' => false ,
89
108
'patternProperties ' => array (
90
109
'^someobject$ ' => array (
91
110
'type ' => 'object ' ,
@@ -100,6 +119,42 @@ public function getValidTests()
100
119
'foobar ' => array ('type ' => 'number ' ),
101
120
),
102
121
),
122
+ '^/ ' => array (
123
+ 'type ' => 'object ' ,
124
+ 'properties ' => array (
125
+ 'get ' => array ('type ' => 'array ' )
126
+ )
127
+ ),
128
+ '^# ' => array (
129
+ 'type ' => 'object ' ,
130
+ 'properties ' => array (
131
+ 'get ' => array ('type ' => 'array ' )
132
+ )
133
+ ),
134
+ '^\+ ' => array (
135
+ 'type ' => 'object ' ,
136
+ 'properties ' => array (
137
+ 'get ' => array ('type ' => 'array ' )
138
+ )
139
+ ),
140
+ '^~ ' => array (
141
+ 'type ' => 'object ' ,
142
+ 'properties ' => array (
143
+ 'get ' => array ('type ' => 'array ' )
144
+ )
145
+ ),
146
+ '^\* ' => array (
147
+ 'type ' => 'object ' ,
148
+ 'properties ' => array (
149
+ 'get ' => array ('type ' => 'array ' )
150
+ )
151
+ ),
152
+ '^% ' => array (
153
+ 'type ' => 'object ' ,
154
+ 'properties ' => array (
155
+ 'get ' => array ('type ' => 'array ' )
156
+ )
157
+ )
103
158
)
104
159
))
105
160
),
You can’t perform that action at this time.
0 commit comments