Overview of the API Contract Validation Test Suite
mainThe API Contract Validation Test Suite is a language-agnostic TypeScript suite designed to validate LeanSpec HTTP API contracts. It works by issuing real HTTP requests against a configured server to ensure that the implementation (whether Rust or Next.js) adheres to the defined API specifications.
Key Characteristics
- Implementation-Agnostic: Validates the API via HTTP, making it compatible with any server implementation.
- Schema-Driven: Uses Zod schemas as the single source of truth for API contracts.
- Real Requests: Performs actual HTTP calls (no mocks) to ensure end-to-end contract compliance.
- CI-Ready: Designed for fast, deterministic execution in CI environments.