(file: HttpImportFile)
| 52 | } |
| 53 | |
| 54 | function 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 | |
| 61 | function readDocument(file: HttpImportFile, warnings: HttpImportWarning[]) { |
| 62 | try { |