(schema: ZodSchema)
| 279 | } |
| 280 | |
| 281 | function isRequired(schema: ZodSchema): boolean { |
| 282 | let def = schema._def; |
| 283 | while (def.typeName === 'ZodEffects') { |
| 284 | if (!def.schema) { |
| 285 | break; |
| 286 | } |
| 287 | schema = def.schema; |
| 288 | def = schema._def; |
| 289 | } |
| 290 | return def.typeName !== 'ZodOptional' && def.typeName !== 'ZodDefault'; |
| 291 | } |
| 292 | |
| 293 | async function generateReference( |
| 294 | title: string, |
no outgoing calls
no test coverage detected