File tree 5 files changed +60
-30
lines changed 5 files changed +60
-30
lines changed Original file line number Diff line number Diff line change @@ -125,13 +125,19 @@ export default {
125
125
"uniqueItems" : true
126
126
} ,
127
127
"type" : {
128
- "anyOf" : [
129
- { "$ref" : "#/definitions/simpleTypes" } ,
128
+ "type" : [ "string" , "array" ] ,
129
+ "allOf" : [
130
+ {
131
+ "if" : { "type" : "string" } ,
132
+ "then" : { "$ref" : "#/definitions/simpleTypes" }
133
+ } ,
130
134
{
131
- "type" : "array" ,
132
- "items" : { "$ref" : "#/definitions/simpleTypes" } ,
133
- "minItems" : 1 ,
134
- "uniqueItems" : true
135
+ "if" : { "type" : "array" } ,
136
+ "then" : {
137
+ "items" : { "$ref" : "#/definitions/simpleTypes" } ,
138
+ "minItems" : 1 ,
139
+ "uniqueItems" : true
140
+ }
135
141
}
136
142
]
137
143
} ,
Original file line number Diff line number Diff line change @@ -134,13 +134,19 @@ export default {
134
134
"uniqueItems" : true
135
135
} ,
136
136
"type" : {
137
- "anyOf" : [
138
- { "$ref" : "#/definitions/simpleTypes" } ,
137
+ "type" : [ "string" , "array" ] ,
138
+ "allOf" : [
139
+ {
140
+ "if" : { "type" : "string" } ,
141
+ "then" : { "$ref" : "#/definitions/simpleTypes" }
142
+ } ,
139
143
{
140
- "type" : "array" ,
141
- "items" : { "$ref" : "#/definitions/simpleTypes" } ,
142
- "minItems" : 1 ,
143
- "uniqueItems" : true
144
+ "if" : { "type" : "array" } ,
145
+ "then" : {
146
+ "items" : { "$ref" : "#/definitions/simpleTypes" } ,
147
+ "minItems" : 1 ,
148
+ "uniqueItems" : true
149
+ }
144
150
}
145
151
]
146
152
} ,
Original file line number Diff line number Diff line change @@ -147,13 +147,19 @@ export default {
147
147
"uniqueItems" : true
148
148
} ,
149
149
"type" : {
150
- "anyOf" : [
151
- { "$ref" : "#/definitions/simpleTypes" } ,
150
+ "type" : [ "string" , "array" ] ,
151
+ "allOf" : [
152
+ {
153
+ "if" : { "type" : "string" } ,
154
+ "then" : { "$ref" : "#/definitions/simpleTypes" }
155
+ } ,
152
156
{
153
- "type" : "array" ,
154
- "items" : { "$ref" : "#/definitions/simpleTypes" } ,
155
- "minItems" : 1 ,
156
- "uniqueItems" : true
157
+ "if" : { "type" : "array" } ,
158
+ "then" : {
159
+ "items" : { "$ref" : "#/definitions/simpleTypes" } ,
160
+ "minItems" : 1 ,
161
+ "uniqueItems" : true
162
+ }
157
163
}
158
164
]
159
165
} ,
Original file line number Diff line number Diff line change @@ -53,13 +53,19 @@ export default {
53
53
"items" : true
54
54
} ,
55
55
"type" : {
56
- "anyOf " : [
57
- { "$ref " : "#/$defs/simpleTypes" } ,
56
+ "type " : [ "string" , "array" ] ,
57
+ "allOf " : [
58
58
{
59
- "type" : "array" ,
60
- "items" : { "$ref" : "#/$defs/simpleTypes" } ,
61
- "minItems" : 1 ,
62
- "uniqueItems" : true
59
+ "if" : { "type" : "string" } ,
60
+ "then" : { "$ref" : "#/$defs/simpleTypes" }
61
+ } ,
62
+ {
63
+ "if" : { "type" : "array" } ,
64
+ "then" : {
65
+ "items" : { "$ref" : "#/$defs/simpleTypes" } ,
66
+ "minItems" : 1 ,
67
+ "uniqueItems" : true
68
+ }
63
69
}
64
70
]
65
71
}
Original file line number Diff line number Diff line change @@ -53,13 +53,19 @@ export default {
53
53
"items" : true
54
54
} ,
55
55
"type" : {
56
- "anyOf " : [
57
- { "$ref " : "#/$defs/simpleTypes" } ,
56
+ "type " : [ "string" , "array" ] ,
57
+ "allOf " : [
58
58
{
59
- "type" : "array" ,
60
- "items" : { "$ref" : "#/$defs/simpleTypes" } ,
61
- "minItems" : 1 ,
62
- "uniqueItems" : true
59
+ "if" : { "type" : "string" } ,
60
+ "then" : { "$ref" : "#/$defs/simpleTypes" }
61
+ } ,
62
+ {
63
+ "if" : { "type" : "array" } ,
64
+ "then" : {
65
+ "items" : { "$ref" : "#/$defs/simpleTypes" } ,
66
+ "minItems" : 1 ,
67
+ "uniqueItems" : true
68
+ }
63
69
}
64
70
]
65
71
}
You can’t perform that action at this time.
0 commit comments