(schema: any)
| 104 | |
| 105 | // @eslint-disable-next-line |
| 106 | const buildZodObject = (schema: any): ZodRawShape => { |
| 107 | const result: Record<string, ZodTypeAny> = {}; |
| 108 | |
| 109 | for (const [k, v] of Object.entries(schema.properties)) { |
| 110 | // @eslint-disable-next-line |
| 111 | result[k] = buildZodProp(v, k); |
| 112 | } |
| 113 | |
| 114 | return result; |
| 115 | }; |
| 116 | |
| 117 | // @eslint-disable-next-line |
| 118 | const buildZodProp = (prop: any, key: string): ZodTypeAny => { |
no test coverage detected