We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18c5ba1 commit f398722Copy full SHA for f398722
tests/JsonSchema/Tests/Constraints/OfPropertiesTest.php
@@ -88,6 +88,26 @@ public function getInvalidTests()
88
),
89
90
91
+ array(
92
+ '{"prop1": [1,2]}',
93
+ '{
94
+ "type": "object",
95
+ "properties": {
96
+ "prop1": {
97
+ "oneOf": [
98
+ {
99
+ "type": "string",
100
+ "pattern": "^[a-z]*$"
101
+ },
102
103
104
+ "pattern": "^[A-Z]*$"
105
+ }
106
+ ]
107
108
109
+ }'
110
+ ),
111
array(
112
'{"prop1": [1,2]}',
113
'{
@@ -173,12 +193,10 @@ public function getInvalidTests()
173
193
"type": "number"
174
194
},
175
195
{
176
- "type": "string",
177
- "pattern": "^[a-z]*$"
196
+ "type": "string"
178
197
179
198
180
181
- "pattern": "^[A-Z]*$"
199
182
200
}
183
201
]
184
202
0 commit comments