diff --git a/option.go b/option.go index 0acaec64..e7e647a3 100644 --- a/option.go +++ b/option.go @@ -332,7 +332,7 @@ type Response struct { // AddResponse adds a response to a route by status code // It replaces any existing response set by any status code, this will override 200. // Required: Response.Type must be set -// Optional: Response.ContentTypes will default to `application/json`, `application/xml` if no set +// Optional: Response.ContentTypes will default to `application/json` and `application/xml` if not set func OptionAddResponse(code int, description string, response Response) func(*BaseRoute) { var responseSchema SchemaTag return func(r *BaseRoute) { diff --git a/option/option.go b/option/option.go index 17dd30f0..53199ddc 100644 --- a/option/option.go +++ b/option/option.go @@ -152,7 +152,7 @@ var AddError = fuego.OptionAddError // AddResponse adds a response to a route by status code // It replaces any existing response set by any status code, this will override 200. // Required: fuego.Response.Type must be set -// Optional: fuego.Response.ContentTypes will default to `application/json`, `application/xml` if no set +// Optional: fuego.Response.ContentTypes will default to `application/json` and `application/xml` if not set var AddResponse = fuego.OptionAddResponse // RequestContentType sets the accepted content types for the route.