Harden RC7 API response contracts
This commit is contained in:
@@ -661,6 +661,19 @@ bash scripts/run_readiness_check.sh
|
||||
|
||||
That readiness gate also runs the API contract smoke check before backend/frontend compilation and tests.
|
||||
|
||||
The RC contract gate loads the generated FastAPI OpenAPI document and requires
|
||||
every successful JSON operation to expose a concrete Pydantic response schema
|
||||
inside the canonical `{"data": ...}` envelope. Run it directly with:
|
||||
|
||||
```bash
|
||||
python scripts/audit_api_contracts.py
|
||||
```
|
||||
|
||||
The only tracked non-envelope operations are the three health probes, the four
|
||||
persisted raster PNG responses and the streamed export download. A newly added
|
||||
free-form JSON response or undocumented exception fails both the focused RC-7
|
||||
test and the repository readiness gate.
|
||||
|
||||
### Golden QA/QC benchmark
|
||||
|
||||
Sprint 12 includes a deterministic QA/QC regression benchmark using explicit fixture data:
|
||||
|
||||
Reference in New Issue
Block a user