Installation
npm install --save @types/ibm-openapi-validator
Summary
This package contains type definitions for ibm-openapi-validator (https://github.com/IBM/openapi-validator#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ibm-openapi-validator.
interface validatorResultItem {
path: string;
message: string;
}
interface validatorResult {
errors: [] | [ validatorResultItem ];
warnings: [] | [ validatorResultItem ];
}
type validatorParameterDefaultMode = boolean;
declare function validator(openApiDoc: {[property: string]: any}, defaultMode?: validatorParameterDefaultMode): Promise<validatorResult>;
export = validator;
Additional Details
- Last updated: Thu, 08 Jul 2021 22:41:05 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Rifa Achrinza.