Description
The frontend relies heavily on the off-chain risk engine. If the backend team changes a JSON key from risk_score to riskScore, the frontend will break. We need a documented contract.
Acceptance Criteria
Technical Details
- Ideally, implement a tool like Orval or RTK Query code-gen in the future to automatically generate these types from a backend OpenAPI spec.
Description
The frontend relies heavily on the off-chain risk engine. If the backend team changes a JSON key from
risk_scoretoriskScore, the frontend will break. We need a documented contract.Acceptance Criteria
API_CONTRACT.mdfile or set up Swagger/OpenAPI UI integration if available./invoicesand/riskendpoints.types/api.tshave comments linking back to this documentation.Technical Details