From 42cb1604afd025a1a5550171365d1c4d3165af0b Mon Sep 17 00:00:00 2001 From: Jerome Cukier Date: Wed, 13 Nov 2024 17:30:12 -0800 Subject: [PATCH] componentSchemas should be an object --- packages/openapi-request-validator/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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