Skip to content

Commit

Permalink
ref must be % encoded, so avoid space
Browse files Browse the repository at this point in the history
  • Loading branch information
jakecoffman committed Apr 23, 2021
1 parent 0182b6f commit ea3cdb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion router.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func (r *Router) Add(specs ...Spec) error {
operation.Parameters = append(operation.Parameters, params...)
}
if spec.Validate.Body.Initialized() {
modelName := fmt.Sprintf("Model %v", r.modelCounter)
modelName := fmt.Sprintf("Model-%v", r.modelCounter)
parameter := Parameter{
In: "body",
Name: "body",
Expand Down

0 comments on commit ea3cdb3

Please sign in to comment.