(
schema: Record<string, unknown>
)
| 1224 | } |
| 1225 | |
| 1226 | export function collectDefinitionCollections( |
| 1227 | schema: Record<string, unknown> |
| 1228 | ): Required<DefinitionCollections> { |
| 1229 | return { |
| 1230 | definitions: { ...((schema.definitions ?? {}) as Record<string, JSONSchema7Definition>) }, |
| 1231 | $defs: { ...((schema.$defs ?? {}) as Record<string, JSONSchema7Definition>) }, |
| 1232 | }; |
| 1233 | } |
| 1234 | |
| 1235 | /** Collect the shared definitions from a schema (handles both `definitions` and `$defs`). */ |
| 1236 | export function collectDefinitions( |
no outgoing calls
no test coverage detected
searching dependent graphs…