We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01950b7 commit 950d429Copy full SHA for 950d429
src/middlewares/openapi.request.validator.ts
@@ -42,6 +42,8 @@ export class RequestValidator {
42
) {
43
this.middlewareCache = {};
44
this.apiDoc = apiDoc;
45
+ // Examples not needed for validation
46
+ delete this.apiDoc.components.examples;
47
this.requestOpts.allowUnknownQueryParameters =
48
options.allowUnknownQueryParameters;
49
this.ajv = createRequestAjv(apiDoc, { ...options, coerceTypes: true });
0 commit comments