(schema: EnumSchema)
| 102 | * Get enum values from EnumSchema (handles both legacy `enum` and new `oneOf` formats) |
| 103 | */ |
| 104 | export function getEnumValues(schema: EnumSchema): string[] { |
| 105 | if ('oneOf' in schema) { |
| 106 | return schema.oneOf.map(item => item.const) |
| 107 | } |
| 108 | if ('enum' in schema) { |
| 109 | return schema.enum |
| 110 | } |
| 111 | return [] |
| 112 | } |
| 113 | |
| 114 | /** |
| 115 | * Get enum display labels from EnumSchema |
no outgoing calls
no test coverage detected