(schemaPath)
| 67 | } |
| 68 | |
| 69 | function loadSchema(schemaPath) { |
| 70 | try { |
| 71 | const content = fs.readFileSync(schemaPath, 'utf8'); |
| 72 | return JSON.parse(content); |
| 73 | } catch (error) { |
| 74 | throw new Error(`Failed to load schema ${schemaPath}: ${error.message}`); |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | function findAllSchemas(dir) { |
| 79 | const schemas = []; |
no outgoing calls
no test coverage detected