feat: publish canonical source contracts
All checks were successful
Mostovik Backend CI/CD / Tests and lint (push) Successful in 3m3s
Mostovik Backend CI/CD / Build linux/amd64 release images (push) Successful in 5m2s
Mostovik Backend CI/CD / Deploy and verify internal main (push) Has been skipped
Mostovik Backend CI/CD / Deploy dev (push) Successful in 2m53s

This commit is contained in:
Aleksandr Meshchryakov
2026-09-24 14:46:08 +02:00
parent 0ad4e9fa05
commit 553d787076
5 changed files with 1956 additions and 15 deletions

View File

@@ -7,6 +7,9 @@ The source is the actual DRF serializers and view annotations. `build.mjs` conve
Swagger 2 to OpenAPI 3, adds the source-record discriminated variants and the named
ordering enum with comma-separated ordering, then validates the resulting document.
Do not edit `src/core/openapi.json` or generated TypeScript by hand.
The public-UI Fedresurs and integrated-structure DTOs live in
`source-record-extensions.json`; `build.mjs` adds their discriminated list/detail
variants and typed upload/attachment errors to the generated contract.
From the backend root (Python dependencies installed with uv):