MCPcopy Index your code
hub / github.com/massCodeIO/massCode / isOpenApiDocument

Function isOpenApiDocument

src/main/http/import/openapi.ts:71–77  ·  view source on GitHub ↗
(raw: unknown)

Source from the content-addressed store, hash-verified

69}
70
71function isOpenApiDocument(raw: unknown): raw is UnknownRecord {
72 return (
73 isRecord(raw)
74 && isRecord(raw.paths)
75 && (typeof raw.openapi === 'string' || typeof raw.swagger === 'string')
76 )
77}
78
79function basename(path: string): string {
80 const normalized = path.replaceAll('\\', '/')

Callers 1

parseOpenApiFilesFunction · 0.70

Calls 1

isRecordFunction · 0.70

Tested by

no test coverage detected