mirror of
https://github.com/Zakkaus/doona.git
synced 2026-12-05 16:02:03 +00:00
src/api/mock/contract.test.ts calls the demo backend in its full, base, M1 and faults profiles and validates every success body, and every error's status and body, against the operation in the bundled OpenAPI, with the schema resolver and Ajv that tools/conformance.mjs already uses. A read the profile turns off must be refused. A few cases the schema cannot see are checked by hand: public discovery, the default page size, summary fields and a DNS log page cut short. SOURCE.md now pins the bundle's SHA-256, and check-gen.sh fails when the vendored YAML no longer matches it, so the pin describes the file.