[go-server] Fix: missing sample changes from previous commit (#18546) (#18588)

This commit is contained in:
keyjh2
2024-05-06 21:27:19 -06:00
committed by GitHub
parent cefbf62060
commit 228b47a953
4 changed files with 8 additions and 8 deletions

View File

@@ -251,7 +251,7 @@ func (c *PetAPIController) FindPetsByStatus(w http.ResponseWriter, r *http.Reque
WithParse[int32](parseInt32),
)
if err != nil {
c.errorHandler(w, r, &ParsingError{Err: err}, nil)
c.errorHandler(w, r, &ParsingError{Param: "defaultInt", Err: err}, nil)
return
}
@@ -267,7 +267,7 @@ func (c *PetAPIController) FindPetsByStatus(w http.ResponseWriter, r *http.Reque
WithParse[float32](parseFloat32),
)
if err != nil {
c.errorHandler(w, r, &ParsingError{Err: err}, nil)
c.errorHandler(w, r, &ParsingError{Param: "defaultNum", Err: err}, nil)
return
}