Skip to content

Commit 0ffe426

Browse files
committed
Fixed issue with validator-ajv6 ignoring oneOf in dependencies because it thinks there isn't exactly one subschema that is valid.
1 parent cecbe97 commit 0ffe426

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

packages/utils/test/schema/getDefaultFormStateTest.ts

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -495,16 +495,6 @@ const testObjectDefault = (testValidator: TestValidatorType, expectList: ObjectD
495495
enum: ['meat', 'grass', 'fish'],
496496
default: 'meat',
497497
},
498-
multipleChoicesList: {
499-
type: 'array',
500-
title: 'A multiple choices list',
501-
items: {
502-
type: 'string',
503-
enum: ['foo', 'bar', 'qux'],
504-
},
505-
uniqueItems: true,
506-
default: ['foo'],
507-
},
508498
},
509499
},
510500
{
@@ -517,16 +507,6 @@ const testObjectDefault = (testValidator: TestValidatorType, expectList: ObjectD
517507
enum: ['insect', 'worms'],
518508
default: 'worms',
519509
},
520-
multipleChoicesList: {
521-
type: 'array',
522-
title: 'A multiple choices list',
523-
items: {
524-
type: 'string',
525-
enum: ['a', 'a', 'b', 'c'],
526-
},
527-
uniqueItems: true,
528-
default: ['a'],
529-
},
530510
water: {
531511
type: 'string',
532512
enum: ['lake', 'sea'],
@@ -548,7 +528,6 @@ const testObjectDefault = (testValidator: TestValidatorType, expectList: ObjectD
548528
rawFormData: {
549529
animal: 'Fish',
550530
food: 'meat',
551-
multipleChoicesList: ['a'],
552531
water: null,
553532
},
554533
shouldMergeDefaultsIntoFormData: true,
@@ -565,7 +544,6 @@ const testObjectDefault = (testValidator: TestValidatorType, expectList: ObjectD
565544
rawFormData: {
566545
animal: 'Fish',
567546
food: 'meat',
568-
multipleChoicesList: ['a'],
569547
water: null,
570548
},
571549
shouldMergeDefaultsIntoFormData: true,
@@ -938,7 +916,6 @@ export default function getDefaultFormStateTest(testValidator: TestValidatorType
938916
toEqual: {
939917
animal: 'Fish',
940918
food: 'worms',
941-
multipleChoicesList: ['a'],
942919
water: null,
943920
},
944921
},
@@ -955,7 +932,6 @@ export default function getDefaultFormStateTest(testValidator: TestValidatorType
955932
toEqual: {
956933
animal: 'Fish',
957934
food: 'worms',
958-
multipleChoicesList: ['a'],
959935
water: 'sea',
960936
},
961937
},
@@ -1348,7 +1324,6 @@ export default function getDefaultFormStateTest(testValidator: TestValidatorType
13481324
toEqual: {
13491325
animal: 'Fish',
13501326
food: 'worms',
1351-
multipleChoicesList: ['a'],
13521327
water: 'sea',
13531328
},
13541329
},
@@ -1361,7 +1336,6 @@ export default function getDefaultFormStateTest(testValidator: TestValidatorType
13611336
toEqual: {
13621337
animal: 'Fish',
13631338
food: 'worms',
1364-
multipleChoicesList: ['a'],
13651339
water: 'sea',
13661340
},
13671341
},

0 commit comments

Comments
 (0)