Skip to content

Commit 49e6ff9

Browse files
committed
fixes after rebase
Signed-off-by: Pierre Fenoll <[email protected]>
1 parent 4b5d38b commit 49e6ff9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

openapi3/request_body.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ func (requestBody *RequestBody) Validate(ctx context.Context, opts ...Validation
112112
return errors.New("content of the request body is required")
113113
}
114114

115-
if vo := getValidationOptions(ctx); !vo.ExamplesValidationDisabled {
115+
if vo := getValidationOptions(ctx); !vo.examplesValidationDisabled {
116116
vo.examplesValidationAsReq, vo.examplesValidationAsRes = true, false
117117
}
118118

openapi3/response.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ func (response *Response) Validate(ctx context.Context, opts ...ValidationOption
119119
if response.Description == nil {
120120
return errors.New("a short description of the response is required")
121121
}
122-
if vo := getValidationOptions(ctx); !vo.ExamplesValidationDisabled {
122+
if vo := getValidationOptions(ctx); !vo.examplesValidationDisabled {
123123
vo.examplesValidationAsReq, vo.examplesValidationAsRes = false, true
124124
}
125125

0 commit comments

Comments
 (0)