openapi-contract-validator-server
Version:
Use an HTTP proxy to validate HTTP interactions against an OpenAPI Schema
26 lines (22 loc) • 577 B
TypeScript
type uri = string;
declare interface endpointDefinition {
/**
* The parial uri of the resource you want validated
*/
endpoint: uri;
/**
* Where does the OpenAPI Schema contract come from
*
* @example // Apiary url
* `https://app.apiary.io/mycontract/editor`
* @example // Absolute file path
* path.join(__dirname, './contract/my-contract.yaml')
*/
contract: uri|path;
/**
* Do you want this endpoint to be validated?
*
* @default true
*/
validate: boolean;
};