(description: string)
| 72 | } |
| 73 | |
| 74 | function pointSchema(description: string): JsonSchema { |
| 75 | return { |
| 76 | type: 'object', |
| 77 | description, |
| 78 | properties: { |
| 79 | x: { type: 'number' }, |
| 80 | y: { type: 'number' }, |
| 81 | }, |
| 82 | required: ['x', 'y'], |
| 83 | additionalProperties: false, |
| 84 | }; |
| 85 | } |
| 86 | |
| 87 | function enumSchema(values: readonly string[], description?: string): JsonSchema { |
| 88 | return { type: 'string', enum: values, ...(description ? { description } : {}) }; |
no outgoing calls
no test coverage detected
searching dependent graphs…