( schema: z.ZodTypeAny, io: 'input' | 'output' = 'input', )
| 37 | * OpenAPI 3 semantics. |
| 38 | */ |
| 39 | export function openApiDocumentJsonSchema( |
| 40 | schema: z.ZodTypeAny, |
| 41 | io: 'input' | 'output' = 'input', |
| 42 | ): Record<string, unknown> { |
| 43 | return jsonSchemaForTarget(schema, io, 'openapi-3.0'); |
| 44 | } |
| 45 | |
| 46 | function jsonSchemaForTarget( |
| 47 | schema: z.ZodTypeAny, |
no test coverage detected