building-microservices-youtube icon indicating copy to clipboard operation
building-microservices-youtube copied to clipboard

Resolve validation.go panic

Open aymanapatel opened this issue 4 years ago • 1 comments

Branch Affected

epsiode_7

Reference to Issue

Fixes #20: Valid request throws error: Interface conversion error is nil not validator.validationerrors for valid request body

aymanapatel avatar Jul 18 '20 07:07 aymanapatel

So delete wasn't covered in the series.

If you're transitioning from episode 6 to episode 7, do the following:-

  1. Implement get single product
  2. Implement delete (raised a PR as the one in this branch doesn't work)
  3. Reduce boilerplate code from (get single product, update, and delete handler functions which convert string ID to integer ID). This is present in the function findProductID in the products handler.
  4. Use only the validate.go fix provided by @aymanapatel

zigmd avatar Feb 13 '21 04:02 zigmd