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

Function getCollectionName

src/main/http/import/openapi.ts:131–134  ·  view source on GitHub ↗
(file: HttpImportFile, raw: UnknownRecord)

Source from the content-addressed store, hash-verified

129}
130
131function getCollectionName(file: HttpImportFile, raw: UnknownRecord): string {
132 const info = getInfo(raw)
133 return normalizeImportName(info.title, basename(file.name))
134}
135
136function getDescription(operation: UnknownRecord): string {
137 return asString(operation.description || operation.summary)

Callers 1

parseOpenApiFileFunction · 0.85

Calls 3

normalizeImportNameFunction · 0.90
getInfoFunction · 0.70
basenameFunction · 0.70

Tested by

no test coverage detected