(values: readonly string[], description?: string)
| 85 | } |
| 86 | |
| 87 | function enumSchema(values: readonly string[], description?: string): JsonSchema { |
| 88 | return { type: 'string', enum: values, ...(description ? { description } : {}) }; |
| 89 | } |
| 90 | |
| 91 | export function stringSchema(description?: string): JsonSchema { |
| 92 | return { type: 'string', ...(description ? { description } : {}) }; |