Skip to main content
CVT

Contract Validator Toolkit

Consumer and producer contract validation for OpenAPI specifications

Node.jsPythonGoJavaDocker

Get up and running in minutes

Pick your language, install the SDK, and validate your first interaction.

Install
npm install @sahina/cvt-sdk
Validate
import { CvtClient } from '@sahina/cvt-sdk';

const client = new CvtClient('localhost:9550');

// Register your OpenAPI schema
await client.registerSchema('my-api', schema);

// Validate a request/response interaction
const result = await client.validateInteraction({
schemaName: 'my-api',
request: { method: 'GET', path: '/users/1' },
response: { statusCode: 200, body: userData },
});