Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanhitt committed Dec 13, 2024
1 parent a55173e commit 6ba3266
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion option.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion option/option.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6ba3266

Please sign in to comment.