Skip to content

[TEST] Add contract tests for frontend API client against backend OpenAPI schema #258

@utksh1

Description

@utksh1

Problem

SecuScan needs a production-grade improvement in this area: Frontend/backend contract safety..

Scope

Generate or validate TypeScript API types from backend schema and fail tests when response contracts drift.

Acceptance Criteria

  • The implementation is focused and does not introduce unrelated UI, docs, lockfile, or formatting churn.
  • Security-sensitive behavior has explicit negative tests where applicable.
  • Existing tests continue to pass, and new tests cover the main success and failure paths.
  • Documentation or configuration examples are updated when operator behavior changes.

Verification

Tests should catch a deliberate backend response shape mismatch or stale frontend type.

Difficulty

Hard, useful issue intended for experienced contributors.

Metadata

Metadata

Assignees

Labels

area:backendBackend API, database, or service workarea:frontendFrontend React/UI worklevel:advanced55 pts difficulty label for advanced contributor PRspriority:mediumImportant issue with normal urgencytype:devopsDevOps or infrastructure work category bonus labeltype:testingTesting work category bonus label

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions