(defs: Record<string, JSONSchema7Definition> | undefined)
| 540 | } |
| 541 | |
| 542 | function normalizeDefs(defs: Record<string, JSONSchema7Definition> | undefined): Record<string, JSONSchema7Definition> | undefined { |
| 543 | if (!defs) return undefined; |
| 544 | return Object.fromEntries( |
| 545 | Object.entries(defs).map(([key, value]) => [ |
| 546 | key, |
| 547 | typeof value === "object" && value !== null ? normalizeNullableRequiredRefs(value as JSONSchema7) : value, |
| 548 | ]) |
| 549 | ); |
| 550 | } |
| 551 | |
| 552 | return { |
| 553 | ...schema, |
no test coverage detected
searching dependent graphs…