refactor: publish typed problem detail codes (WealthLedger/backend#117) #144

Merged
codex-bot merged 1 commits from refactor/117-typed-problem-codes into develop 2026-10-28 17:11:41 +03:00
Owner

Part of #117 (backend contract). Merge BEFORE the frontend consumer PR.

  • src/openapi.ts assembles PROBLEM_CODES from all 10 error-code enums at the composition root (so common does not depend on modules) and publishes them as ProblemDetailsDto.code enum (35 codes). Runtime payload unchanged.
  • Moex/Ncr/Income/Events error-code enums exported.
  • Contract e2e test asserts the exact code set.

Checks: lint, typecheck, unit tests, openapi:check, test:openapi-contract.
Known limit: the filter still passes through any string code; typing thrown payloads is a follow-up.

Part of #117 (backend contract). Merge BEFORE the frontend consumer PR. - `src/openapi.ts` assembles `PROBLEM_CODES` from all 10 error-code enums at the composition root (so `common` does not depend on `modules`) and publishes them as `ProblemDetailsDto.code` enum (35 codes). Runtime payload unchanged. - Moex/Ncr/Income/Events error-code enums exported. - Contract e2e test asserts the exact code set. Checks: lint, typecheck, unit tests, `openapi:check`, `test:openapi-contract`. Known limit: the filter still passes through any string code; typing thrown payloads is a follow-up.
ksv741 force-pushed refactor/117-typed-problem-codes from fe185a1f4a to 48e25ce30d 2026-10-28 16:27:05 +03:00 Compare
ksv741 added 1 commit 2026-10-28 16:55:43 +03:00
refactor: publish typed problem detail codes (WealthLedger/backend#117)
Backend verify / commits (pull_request) Successful in 29s
Backend verify / security (pull_request) Successful in 10s
Backend verify / verify (pull_request) Successful in 5m12s
f014314413
ksv741 force-pushed refactor/117-typed-problem-codes from 48e25ce30d to f014314413 2026-10-28 16:55:43 +03:00 Compare
codex-bot scheduled this pull request to auto merge when all checks succeed 2026-10-28 16:55:46 +03:00
codex-bot merged commit d37fa2c903 into develop 2026-10-28 17:11:41 +03:00
codex-bot deleted branch refactor/117-typed-problem-codes 2026-10-28 17:11:41 +03:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: WealthLedger/backend#144