(schema: z.ZodTypeAny)
| 18 | * schemas don't need it. |
| 19 | */ |
| 20 | export function jsonSchema(schema: z.ZodTypeAny): Record<string, unknown> { |
| 21 | return jsonSchemaForTarget(schema, 'input', 'draft-7'); |
| 22 | } |
| 23 | |
| 24 | /** |
| 25 | * Convert a Zod schema to a response-side Fastify JSON Schema object. |
no test coverage detected