Skip to content

Commit a4e6a47

Browse files
committed
fix indent
1 parent a546324 commit a4e6a47

File tree

1 file changed

+38
-38
lines changed

1 file changed

+38
-38
lines changed

README.md

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -119,46 +119,46 @@ You should also have the following in the server's log to help you debug your sc
119119
### Configuration
120120
```go
121121
type Config struct {
122-
// Skipper defines a function to skip middleware.
123-
Skipper middleware.Skipper
124-
125-
// Schema defines the OpenAPI that will be loaded and
126-
// that the request and responses will be validated against.
127-
// Required.
128-
Schema string
129-
130-
// ContextKey defines the key that will be used to store the validator
131-
// on the echo.Context when the request is successfully validated.
132-
// Optional. Defaults to "validator".
133-
ContextKey string
134-
135-
// ExemptRoutes defines routes and methods that don't require tokens.
136-
// Optional.
137-
ExemptRoutes map[string][]string
122+
// Skipper defines a function to skip middleware.
123+
Skipper middleware.Skipper
124+
125+
// Schema defines the OpenAPI that will be loaded and
126+
// that the request and responses will be validated against.
127+
// Required.
128+
Schema string
129+
130+
// ContextKey defines the key that will be used to store the validator
131+
// on the echo.Context when the request is successfully validated.
132+
// Optional. Defaults to "validator".
133+
ContextKey string
134+
135+
// ExemptRoutes defines routes and methods that don't require tokens.
136+
// Optional.
137+
ExemptRoutes map[string][]string
138138
}
139139

140140
type HandlerConfig struct {
141-
// ContentType sets the Content-Type header of the response.
142-
// Optional. Defaults to "application/json".
143-
ContentType string
144-
145-
// ValidatorKey defines the key that will be used to read the
146-
// *openapi3filter.RequestValidationInput from the echo.Context
147-
// set by the middleware.
148-
// Optional. Defaults to "validator".
149-
ValidatorKey string
150-
151-
// ExcludeRequestBody makes Validate skips request body validation.
152-
// Optional. Defaults to false.
153-
ExcludeRequestBody bool
154-
155-
// ExcludeResponseBody makes Validate skips response body validation.
156-
// Optional. Defaults to false.
157-
ExcludeResponseBody bool
158-
159-
// IncludeResponseStatus makes Validate fail on response
160-
// statuses not defined in the OpenAPI spec.
161-
// Optional. Defaults to true.
162-
IncludeResponseStatus bool
141+
// ContentType sets the Content-Type header of the response.
142+
// Optional. Defaults to "application/json".
143+
ContentType string
144+
145+
// ValidatorKey defines the key that will be used to read the
146+
// *openapi3filter.RequestValidationInput from the echo.Context
147+
// set by the middleware.
148+
// Optional. Defaults to "validator".
149+
ValidatorKey string
150+
151+
// ExcludeRequestBody makes Validate skips request body validation.
152+
// Optional. Defaults to false.
153+
ExcludeRequestBody bool
154+
155+
// ExcludeResponseBody makes Validate skips response body validation.
156+
// Optional. Defaults to false.
157+
ExcludeResponseBody bool
158+
159+
// IncludeResponseStatus makes Validate fail on response
160+
// statuses not defined in the OpenAPI spec.
161+
// Optional. Defaults to true.
162+
IncludeResponseStatus bool
163163
}
164164
```

0 commit comments

Comments
 (0)