diff --git a/src/middlewares/openapi.request.validator.ts b/src/middlewares/openapi.request.validator.ts index ee2fd094..be61a361 100644 --- a/src/middlewares/openapi.request.validator.ts +++ b/src/middlewares/openapi.request.validator.ts @@ -42,6 +42,8 @@ export class RequestValidator { ) { this.middlewareCache = {}; this.apiDoc = apiDoc; + // Examples not needed for validation + delete this.apiDoc.components.examples; this.requestOpts.allowUnknownQueryParameters = options.allowUnknownQueryParameters; this.ajv = createRequestAjv(apiDoc, { ...options, coerceTypes: true });