Skip to content

Commit

Permalink
[Middleware] Fix body validation
Browse files Browse the repository at this point in the history
  • Loading branch information
danysousa committed Oct 6, 2023
1 parent 50a7f75 commit dfd23a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middleware/body_decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ func validateStruct(val reflect.Value) errors.Error {
typeOfFieldI := typeOfParameters.Field(i)

if !val.Field(i).CanInterface() {
return errors.InternalServerError("can_interface_failed", "interface for field %s cannot be used without panicking", typeOfFieldI.Name)
continue
}

// pattern validation
Expand Down

0 comments on commit dfd23a7

Please sign in to comment.