From 6ba326600729cdb5bfae8ea618deba57b8838243 Mon Sep 17 00:00:00 2001 From: dylanhitt Date: Fri, 13 Dec 2024 18:20:18 -0500 Subject: [PATCH] typo --- option.go | 2 +- option/option.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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.