( schema: MultiSelectEnumSchema, value: string, )
| 91 | * Get label for a specific value in a multi-select enum |
| 92 | */ |
| 93 | export function getMultiSelectLabel( |
| 94 | schema: MultiSelectEnumSchema, |
| 95 | value: string, |
| 96 | ): string { |
| 97 | const index = getMultiSelectValues(schema).indexOf(value) |
| 98 | return index >= 0 ? (getMultiSelectLabels(schema)[index] ?? value) : value |
| 99 | } |
| 100 | |
| 101 | /** |
| 102 | * Get enum values from EnumSchema (handles both legacy `enum` and new `oneOf` formats) |
no test coverage detected