Skip to content

Commit

Permalink
comment out validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam0Brien committed Jan 27, 2025
1 parent 8335798 commit 54bb6be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/middleware/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ func Validation(validator *protovalidate.Validator) middleware.Middleware {
if err := validator.Validate(v); err != nil {
return nil, errors.BadRequest("VALIDATOR", err.Error()).WithCause(err)
}
if err := ValidateResourceJSON(v); err != nil {
return nil, errors.BadRequest("JSON_VALIDATOR", err.Error()).WithCause(err)
}
//if err := ValidateResourceJSON(v); err != nil {
// return nil, errors.BadRequest("JSON_VALIDATOR", err.Error()).WithCause(err)
//}
}
return handler(ctx, req)
}
Expand Down

0 comments on commit 54bb6be

Please sign in to comment.