@@ -136,27 +136,27 @@ type Config struct {
136136}
137137
138138type HandlerConfig struct {
139- // ContentType sets the Content-Type header of the response.
140- // Optional. Defaults to "application/json".
141- ContentType string
142-
143- // ValidatorKey defines the key that will be used to read the
144- // *openapi3filter.RequestValidationInput from the echo.Context
145- // set by the middleware.
146- // Optional. Defaults to "validator".
147- ValidatorKey string
148-
149- // ExcludeRequestBody makes Validate skips request body validation.
150- // Optional. Defaults to false.
151- ExcludeRequestBody bool
152-
153- // ExcludeResponseBody makes Validate skips response body validation.
154- // Optional. Defaults to false.
155- ExcludeResponseBody bool
156-
157- // IncludeResponseStatus so ValidateResponse fails on response
158- // statuses not defined in the OpenAPI spec.
159- // Optional. Defaults to true.
160- IncludeResponseStatus bool
139+ // ContentType sets the Content-Type header of the response.
140+ // Optional. Defaults to "application/json".
141+ ContentType string
142+
143+ // ValidatorKey defines the key that will be used to read the
144+ // *openapi3filter.RequestValidationInput from the echo.Context
145+ // set by the middleware.
146+ // Optional. Defaults to "validator".
147+ ValidatorKey string
148+
149+ // ExcludeRequestBody makes Validate skips request body validation.
150+ // Optional. Defaults to false.
151+ ExcludeRequestBody bool
152+
153+ // ExcludeResponseBody makes Validate skips response body validation.
154+ // Optional. Defaults to false.
155+ ExcludeResponseBody bool
156+
157+ // IncludeResponseStatus so ValidateResponse fails on response
158+ // statuses not defined in the OpenAPI spec.
159+ // Optional. Defaults to true.
160+ IncludeResponseStatus bool
161161}
162162```
0 commit comments