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

Function asString

src/main/http/import/openapi.ts:46–52  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

44}
45
46function asString(value: unknown): string {
47 if (typeof value === 'string')
48 return value
49 if (typeof value === 'number' || typeof value === 'boolean')
50 return String(value)
51 return ''
52}
53
54function isImportableFile(file: HttpImportFile): boolean {
55 const name = file.name.toLowerCase()

Callers 8

getDescriptionFunction · 0.70
getServerUrlFunction · 0.70
getParameterValueFunction · 0.70
parseParametersFunction · 0.70
parseRequestBodyFunction · 0.70
parseSecurityFunction · 0.70
parseOperationFunction · 0.70
parseOpenApiFileFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected