(
schema: Record<string, unknown>
)
| 1234 | |
| 1235 | /** Collect the shared definitions from a schema (handles both `definitions` and `$defs`). */ |
| 1236 | export function collectDefinitions( |
| 1237 | schema: Record<string, unknown> |
| 1238 | ): Record<string, JSONSchema7Definition> { |
| 1239 | const { definitions, $defs } = collectDefinitionCollections(schema); |
| 1240 | return { ...$defs, ...definitions }; |
| 1241 | } |
| 1242 | |
| 1243 | export function findSharedSchemaDefinitions( |
| 1244 | sourceSchema: Record<string, unknown>, |
no test coverage detected
searching dependent graphs…