Skip to content

Commit

Permalink
endpoint.Schema deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
zc2638 committed Oct 24, 2022
1 parent a91bc9e commit bec5557
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions endpoint/endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,10 @@ func SchemaResponseOption(schema interface{}) ResponseOption {
}
}

// Schema is the same as SchemaResponseOption.
// Deprecated.
var Schema = SchemaResponseOption

// HeaderResponseOption adds header definitions to swagger responses
func HeaderResponseOption(name string, typ types.ParameterType, format, description string) ResponseOption {
return func(response *swag.Response) {
Expand Down

0 comments on commit bec5557

Please sign in to comment.