File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -518,6 +518,14 @@ function testElicitationFlow(validatorProvider: typeof ajvProvider | typeof cfWo
518518 } ,
519519 default : [ 'green' , 'blue' ]
520520 } ,
521+ legacyTitledEnum : {
522+ type : 'string' ,
523+ title : 'Legacy Titled Enum' ,
524+ description : 'Choose your favorite color' ,
525+ enum : [ 'red' , 'green' , 'blue' ] ,
526+ enumNames : [ 'Red' , 'Green' , 'Blue' ] ,
527+ default : 'green'
528+ } ,
521529 optionalWithADefault : { type : 'string' , default : 'default value' }
522530 } ,
523531 required : [
@@ -560,6 +568,7 @@ function testElicitationFlow(validatorProvider: typeof ajvProvider | typeof cfWo
560568 untitledMultipleSelectEnum : [ 'green' , 'blue' ] ,
561569 titledSingleSelectEnum : 'green' ,
562570 titledMultipleSelectEnum : [ 'green' , 'blue' ] ,
571+ legacyTitledEnum : 'green' ,
563572 optionalWithADefault : 'default value'
564573 }
565574 } ) ;
Original file line number Diff line number Diff line change @@ -1325,7 +1325,7 @@ export const MultiSelectEnumSchemaSchema = z.union([UntitledMultiSelectEnumSchem
13251325/**
13261326 * Primitive schema definition for enum fields.
13271327 */
1328- export const EnumSchemaSchema = z . union ( [ SingleSelectEnumSchemaSchema , MultiSelectEnumSchemaSchema , LegacyTitledEnumSchemaSchema ] ) ;
1328+ export const EnumSchemaSchema = z . union ( [ LegacyTitledEnumSchemaSchema , SingleSelectEnumSchemaSchema , MultiSelectEnumSchemaSchema ] ) ;
13291329
13301330/**
13311331 * Union of all primitive schema definitions.
You can’t perform that action at this time.
0 commit comments