(ref: string)
| 990 | } |
| 991 | |
| 992 | export function parseExternalSchemaRef(ref: string): { schemaFile: string; definitionName: string } | undefined { |
| 993 | const match = ref.match(/^([^#]+)#\/(?:definitions|\$defs)\/(.+)$/); |
| 994 | return match ? { schemaFile: match[1], definitionName: match[2] } : undefined; |
| 995 | } |
| 996 | |
| 997 | export function collectExternalSchemaRefNames(schema: unknown): Map<string, Set<string>> { |
| 998 | const refs = new Map<string, Set<string>>(); |
no outgoing calls
no test coverage detected
searching dependent graphs…