(/** @type {SchemaFile} */ schema)
| 1877 | } |
| 1878 | |
| 1879 | async function assertTopLevelRefIsStandalone(/** @type {SchemaFile} */ schema) { |
| 1880 | if (schema.json.$ref?.startsWith('http')) { |
| 1881 | for (const [member] of Object.entries(schema.json)) { |
| 1882 | if (member !== '$ref') { |
| 1883 | printErrorAndExit(new Error(), [ |
| 1884 | `Schemas that reference a remote schema must only have $ref as a property. Found property "${member}" for "${schema.name}"`, |
| 1885 | ]) |
| 1886 | } |
| 1887 | } |
| 1888 | } |
| 1889 | } |
| 1890 | |
| 1891 | async function printSchemaReport() { |
| 1892 | // `bowtie validate --implementation go-gojsonschema ./src/schemas/json/ava.json ./src/test/ava/ava.config.json` |
no test coverage detected