Skip to content

Commit

Permalink
componentSchemas should be an object
Browse files Browse the repository at this point in the history
  • Loading branch information
jckr committed Nov 14, 2024
1 parent 70ada01 commit 42cb160
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/openapi-request-validator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export interface OpenAPIRequestValidatorArgs {
parameters?: OpenAPI.Parameters;
requestBody?: OpenAPIV3.RequestBodyObject;
schemas?: IJsonSchema[];
componentSchemas?: IJsonSchema[];
componentSchemas?: Record<string, IJsonSchema>;
errorTransformer?(
openAPIResponseValidatorValidationError: OpenAPIRequestValidatorError,
ajvError: ErrorObject
Expand Down

0 comments on commit 42cb160

Please sign in to comment.