File tree Expand file tree Collapse file tree 1 file changed +97
-0
lines changed
tests/JsonSchema/Tests/Constraints Expand file tree Collapse file tree 1 file changed +97
-0
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,103 @@ public function getInvalidTests()
8888 ),
8989 ),
9090 ),
91+ array (
92+ '{"prop1": [1,2]} ' ,
93+ '{
94+ "type": "object",
95+ "properties": {
96+ "prop1": {
97+ "anyOf": [
98+ {
99+ "type": "string",
100+ "pattern": "^[A-Z]*$"
101+ }
102+ ]
103+ }
104+ }
105+ } '
106+ ),
107+ array (
108+ '{"prop1": [1,2]} ' ,
109+ '{
110+ "type": "object",
111+ "properties": {
112+ "prop1": {
113+ "anyOf": [
114+ {
115+ "type": "number"
116+ },
117+ {
118+ "type": "string",
119+ "pattern": "^[A-Z]*$"
120+ }
121+ ]
122+ }
123+ }
124+ } '
125+ ),
126+ array (
127+ '{"prop1": [1,2]} ' ,
128+ '{
129+ "type": "object",
130+ "properties": {
131+ "prop1": {
132+ "anyOf": [
133+ {
134+ "type": "string"
135+ },
136+ {
137+ "type": "string",
138+ "pattern": "^[A-Z]*$"
139+ }
140+ ]
141+ }
142+ }
143+ } '
144+ ),
145+ array (
146+ '{"prop1": [1,2]} ' ,
147+ '{
148+ "type": "object",
149+ "properties": {
150+ "prop1": {
151+ "anyOf": [
152+ {
153+ "type": "string",
154+ "pattern": "^[a-z]*$"
155+ },
156+ {
157+ "type": "string",
158+ "pattern": "^[A-Z]*$"
159+ }
160+ ]
161+ }
162+ }
163+ } '
164+ ),
165+ array (
166+ '{"prop1": [1,2]} ' ,
167+ '{
168+ "type": "object",
169+ "properties": {
170+ "prop1": {
171+ "anyOf": [
172+ {
173+ "type": "number"
174+ },
175+ {
176+ "type": "string",
177+ "pattern": "^[a-z]*$"
178+ },
179+ {
180+ "type": "string",
181+ "pattern": "^[A-Z]*$"
182+ }
183+ ]
184+ }
185+ }
186+ } '
187+ )
91188 );
92189 }
93190}
You can’t perform that action at this time.
0 commit comments