From 49e6ff9f53fea9bf423e8411944529acf3a536ab Mon Sep 17 00:00:00 2001 From: Pierre Fenoll Date: Fri, 28 Oct 2022 16:50:25 +0200 Subject: [PATCH] fixes after rebase Signed-off-by: Pierre Fenoll --- openapi3/request_body.go | 2 +- openapi3/response.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openapi3/request_body.go b/openapi3/request_body.go index 225c3d3c7..2894739b0 100644 --- a/openapi3/request_body.go +++ b/openapi3/request_body.go @@ -112,7 +112,7 @@ func (requestBody *RequestBody) Validate(ctx context.Context, opts ...Validation return errors.New("content of the request body is required") } - if vo := getValidationOptions(ctx); !vo.ExamplesValidationDisabled { + if vo := getValidationOptions(ctx); !vo.examplesValidationDisabled { vo.examplesValidationAsReq, vo.examplesValidationAsRes = true, false } diff --git a/openapi3/response.go b/openapi3/response.go index d2f907d12..decbebb60 100644 --- a/openapi3/response.go +++ b/openapi3/response.go @@ -119,7 +119,7 @@ func (response *Response) Validate(ctx context.Context, opts ...ValidationOption if response.Description == nil { return errors.New("a short description of the response is required") } - if vo := getValidationOptions(ctx); !vo.ExamplesValidationDisabled { + if vo := getValidationOptions(ctx); !vo.examplesValidationDisabled { vo.examplesValidationAsReq, vo.examplesValidationAsRes = false, true }