Skip to content

[Feature] Auto-validate API requests against OpenAPI spec #759

Description

@Dev-AdeTutu

Problem Statement

Manual request validation leads to inconsistencies and missing validations. OpenAPI spec exists but isn't enforced at runtime.

Proposed Solution

Use express-openapi-validator:

  • Load openapi.yaml at startup
  • Auto-validate all requests
  • Return structured 400 errors
  • Validate response schemas (dev only)
  • Generate validation tests

Affected Component(s)

  • Frontend (React / TypeScript)
  • Backend / IoT bridge (Node.js)
  • Smart contracts (Soroban / Rust)
  • Documentation
  • Other

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programapiREST API contract, schema, or documentationbackendenhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions