validator
validator copied to clipboard
feat: add image validation
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.mddocument 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
Coverage: 73.945% (+0.07%) from 73.88% when pulling e3ad39e86ce7617951ffc182b19fbc05d7c23e18 on the-fanan:feat-add-image-validation into c8b98cbcea08971fbead222ddf5fd406a40d40ed on go-playground:master.
@hjwk can you help review this please?
Let's ship this please :+1: