(fileName: string)
| 18 | : path.resolve(here, "../../../contract"); |
| 19 | |
| 20 | export function loadContractDocument(fileName: string): Record<string, unknown> { |
| 21 | return yaml.load(readFileSync(path.join(CONTRACT_DIR, fileName), "utf-8")) as Record< |
| 22 | string, |
| 23 | unknown |
| 24 | >; |
| 25 | } |
| 26 | |
| 27 | // Normalises the two OpenAPI 3.0 constructs Ajv can't consume directly, everywhere |
| 28 | // they occur in the tree. Schema-agnostic: it reshapes keywords, never named schemas. |
no outgoing calls
no test coverage detected