validator icon indicating copy to clipboard operation
validator copied to clipboard

feat: add image validation

Open the-fanan opened this issue 3 years ago • 2 comments

Enhances

Make sure that you've checked the boxes below before you submit PR: ☑️ Tests exist or have been written that cover this particular change.

This PR does the following:

  • adds a baked in validation to validate a file is a valid image
  • adds a unit test to cover the added validation
  • adds translations for image validation
  • adds tests to cover translations for image validation
  • updates the README.md document to include the added image validation

Motivation:

  • Go is increasingly becoming used as a back-end language. File validations are pretty common for many back-end services. This validation will allow developers to easily validate that a file is a valid image.

@go-playground/validator-maintainers

the-fanan avatar Jul 30 '22 08:07 the-fanan

Coverage Status

Coverage: 73.945% (+0.07%) from 73.88% when pulling e3ad39e86ce7617951ffc182b19fbc05d7c23e18 on the-fanan:feat-add-image-validation into c8b98cbcea08971fbead222ddf5fd406a40d40ed on go-playground:master.

coveralls avatar Jul 30 '22 08:07 coveralls

@hjwk can you help review this please?

the-fanan avatar Aug 05 '22 11:08 the-fanan

Let's ship this please :+1:

hiendaovinh avatar Mar 25 '23 06:03 hiendaovinh