Skip to content

Commit

Permalink
Use tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
moritzschmitz-oviva committed Jan 22, 2025
1 parent 6bcd6a0 commit 65e235c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -593,11 +593,11 @@ func (c *{{classname}}Controller) {{nickname}}(w http.ResponseWriter, r *http.Re
{{#isBodyParam}}
var {{paramName}}Param {{dataType}}
d := json.NewDecoder(r.Body)
{{^allowUnknownFields}}
{{^allowUnknownFields}}
{{^isAdditionalPropertiesTrue}}
d.DisallowUnknownFields()
{{/isAdditionalPropertiesTrue}}
{{/allowUnknownFields}}
{{/allowUnknownFields}}
if err := d.Decode(&{{paramName}}Param); err != nil {{^required}}&& !errors.Is(err, io.EOF) {{/required}}{
c.errorHandler(w, r, &ParsingError{Err: err}, nil)
return
Expand Down

0 comments on commit 65e235c

Please sign in to comment.