File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed
packages/vue-vuetify/src/complex Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ import {
94
94
type ControlElement ,
95
95
type JsonFormsUISchemaRegistryEntry ,
96
96
type JsonSchema ,
97
+ type JsonSchema7 ,
97
98
type UISchemaElement ,
98
99
} from ' @jsonforms/core' ;
99
100
import {
@@ -234,8 +235,23 @@ const createMixedRenderInfos = (
234
235
: false ;
235
236
} else if (schema .type === ' array' ) {
236
237
schema .items = schema .items ?? {};
237
- if (! (schema .items as any ).type ) {
238
- (schema .items as any ).type = [
238
+ if (schema .items === true ) {
239
+ schema .items = {
240
+ type: [
241
+ ' array' ,
242
+ ' boolean' ,
243
+ ' integer' ,
244
+ ' null' ,
245
+ ' number' ,
246
+ ' object' ,
247
+ ' string' ,
248
+ ],
249
+ };
250
+ } else if (
251
+ typeof (schema .items as JsonSchema7 ).type !== ' string' &&
252
+ ! Array .isArray ((schema .items as JsonSchema7 ).type )
253
+ ) {
254
+ (schema .items as JsonSchema7 ).type = [
239
255
' array' ,
240
256
' boolean' ,
241
257
' integer' ,
You can’t perform that action at this time.
0 commit comments