File tree Expand file tree Collapse file tree 5 files changed +60
-30
lines changed Expand file tree Collapse file tree 5 files changed +60
-30
lines changed Original file line number Diff line number Diff line change @@ -206,13 +206,19 @@ of valid schemas written for this particular dialect.`
206
206
"description" : _enum . description
207
207
} ,
208
208
"type" : {
209
- "anyOf" : [
210
- { "$ref" : "#/definitions/simpleTypes" } ,
209
+ "type" : [ "string" , "array" ] ,
210
+ "allOf" : [
211
+ {
212
+ "if" : { "type" : "string" } ,
213
+ "then" : { "$ref" : "#/definitions/simpleTypes" }
214
+ } ,
211
215
{
212
- "type" : "array" ,
213
- "items" : { "$ref" : "#/definitions/simpleTypes" } ,
214
- "minItems" : 1 ,
215
- "uniqueItems" : true
216
+ "if" : { "type" : "array" } ,
217
+ "then" : {
218
+ "items" : { "$ref" : "#/definitions/simpleTypes" } ,
219
+ "minItems" : 1 ,
220
+ "uniqueItems" : true
221
+ }
216
222
}
217
223
] ,
218
224
"description" : type . description
Original file line number Diff line number Diff line change @@ -231,13 +231,19 @@ of valid schemas written for this particular dialect.`
231
231
"description" : _enum . description
232
232
} ,
233
233
"type" : {
234
- "anyOf" : [
235
- { "$ref" : "#/definitions/simpleTypes" } ,
234
+ "type" : [ "string" , "array" ] ,
235
+ "allOf" : [
236
+ {
237
+ "if" : { "type" : "string" } ,
238
+ "then" : { "$ref" : "#/definitions/simpleTypes" }
239
+ } ,
236
240
{
237
- "type" : "array" ,
238
- "items" : { "$ref" : "#/definitions/simpleTypes" } ,
239
- "minItems" : 1 ,
240
- "uniqueItems" : true
241
+ "if" : { "type" : "array" } ,
242
+ "then" : {
243
+ "items" : { "$ref" : "#/definitions/simpleTypes" } ,
244
+ "minItems" : 1 ,
245
+ "uniqueItems" : true
246
+ }
241
247
}
242
248
] ,
243
249
"description" : type . description
Original file line number Diff line number Diff line change @@ -255,13 +255,19 @@ of valid schemas written for this particular dialect.`
255
255
"description" : _enum . description
256
256
} ,
257
257
"type" : {
258
- "anyOf" : [
259
- { "$ref" : "#/definitions/simpleTypes" } ,
258
+ "type" : [ "string" , "array" ] ,
259
+ "allOf" : [
260
+ {
261
+ "if" : { "type" : "string" } ,
262
+ "then" : { "$ref" : "#/definitions/simpleTypes" }
263
+ } ,
260
264
{
261
- "type" : "array" ,
262
- "items" : { "$ref" : "#/definitions/simpleTypes" } ,
263
- "minItems" : 1 ,
264
- "uniqueItems" : true
265
+ "if" : { "type" : "array" } ,
266
+ "then" : {
267
+ "items" : { "$ref" : "#/definitions/simpleTypes" } ,
268
+ "minItems" : 1 ,
269
+ "uniqueItems" : true
270
+ }
265
271
}
266
272
] ,
267
273
"description" : type . description
Original file line number Diff line number Diff line change @@ -109,13 +109,19 @@ export default {
109
109
"description" : _enum . description
110
110
} ,
111
111
"type" : {
112
- "anyOf " : [
113
- { "$ref " : "#/$defs/simpleTypes" } ,
112
+ "type " : [ "string" , "array" ] ,
113
+ "allOf " : [
114
114
{
115
- "type" : "array" ,
116
- "items" : { "$ref" : "#/$defs/simpleTypes" } ,
117
- "minItems" : 1 ,
118
- "uniqueItems" : true
115
+ "if" : { "type" : "string" } ,
116
+ "then" : { "$ref" : "#/$defs/simpleTypes" }
117
+ } ,
118
+ {
119
+ "if" : { "type" : "array" } ,
120
+ "then" : {
121
+ "items" : { "$ref" : "#/$defs/simpleTypes" } ,
122
+ "minItems" : 1 ,
123
+ "uniqueItems" : true
124
+ }
119
125
}
120
126
] ,
121
127
"description" : type . description
Original file line number Diff line number Diff line change @@ -111,13 +111,19 @@ export default {
111
111
"description" : _enum . description
112
112
} ,
113
113
"type" : {
114
- "anyOf " : [
115
- { "$ref " : "#/$defs/simpleTypes" } ,
114
+ "type " : [ "string" , "array" ] ,
115
+ "allOf " : [
116
116
{
117
- "type" : "array" ,
118
- "items" : { "$ref" : "#/$defs/simpleTypes" } ,
119
- "minItems" : 1 ,
120
- "uniqueItems" : true
117
+ "if" : { "type" : "string" } ,
118
+ "then" : { "$ref" : "#/$defs/simpleTypes" }
119
+ } ,
120
+ {
121
+ "if" : { "type" : "array" } ,
122
+ "then" : {
123
+ "items" : { "$ref" : "#/$defs/simpleTypes" } ,
124
+ "minItems" : 1 ,
125
+ "uniqueItems" : true
126
+ }
121
127
}
122
128
] ,
123
129
"description" : type . description
You can’t perform that action at this time.
0 commit comments