(dir)
| 42 | } |
| 43 | |
| 44 | function walk(dir) { |
| 45 | const out = []; |
| 46 | for (const entry of fs.readdirSync(dir, { withFileTypes: true })) { |
| 47 | const full = path.join(dir, entry.name); |
| 48 | if (entry.isDirectory()) out.push(...walk(full)); |
| 49 | else if (entry.isFile() && entry.name.endsWith('.yaml')) out.push(full); |
| 50 | } |
| 51 | return out; |
| 52 | } |
| 53 | |
| 54 | function* findErrorCodeAssertions(node, trail) { |
| 55 | if (Array.isArray(node)) { |