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

Function isImportableFile

src/main/http/import/openapi.ts:54–59  ·  view source on GitHub ↗
(file: HttpImportFile)

Source from the content-addressed store, hash-verified

52}
53
54function isImportableFile(file: HttpImportFile): boolean {
55 const name = file.name.toLowerCase()
56 return (
57 name.endsWith('.json') || name.endsWith('.yaml') || name.endsWith('.yml')
58 )
59}
60
61function readDocument(file: HttpImportFile, warnings: HttpImportWarning[]) {
62 try {

Callers 1

parseOpenApiFilesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected