validator icon indicating copy to clipboard operation
validator copied to clipboard

Fix excluded_unless.

Open kekomal opened this issue 2 years ago • 1 comments

Value check was happening when the value was present ("if"), not absent ("unless"). Tests were cheated to pass this behavior.

Fixes Or Enhances

Make sure that you've checked the boxes below before you submit PR:

  • [x] Tests exist or have been written that cover this particular change.

@go-playground/validator-maintainers

kekomal avatar Jun 08 '22 10:06 kekomal

Coverage Status

Coverage remained the same at 74.177% when pulling 0e62c17e43033268883321581d7866a7de3a3ed2 on kekomal:fix_excluded_unless into 9e2ea4038020b5c7e3802a21cfa4e3afcfdcd276 on go-playground:master.

coveralls avatar Jun 08 '22 10:06 coveralls