diff --git a/packages/openapi-request-validator/index.ts b/packages/openapi-request-validator/index.ts index 700c81be..c209f100 100644 --- a/packages/openapi-request-validator/index.ts +++ b/packages/openapi-request-validator/index.ts @@ -32,7 +32,7 @@ export interface OpenAPIRequestValidatorArgs { parameters?: OpenAPI.Parameters; requestBody?: OpenAPIV3.RequestBodyObject; schemas?: IJsonSchema[]; - componentSchemas?: IJsonSchema[]; + componentSchemas?: Record; errorTransformer?( openAPIResponseValidatorValidationError: OpenAPIRequestValidatorError, ajvError: ErrorObject