go-playground / validator

:100:Go Struct and Field validation, including Cross Field, Cross Struct, Map, Slice and Array diving
MIT License
16.14k stars 1.29k forks source link

add ISSN validator + tests + documentation #1166

Closed mrcook closed 8 months ago

mrcook commented 10 months ago

International Standard Serial Number (ISSN) validator

"An ISSN is an 8-digit code used to identify newspapers, journals, magazines and periodicals of all kinds and on all media–print and electronic." -- issn.org

This PR adds a new issn validator, along with updating all translation files and tests. This validator is very similar to that of the ISBN so I believe all translations will be okay. The valid ISSNs used in the tests are examples taken from issn.org.

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

@go-playground/validator-maintainers

coveralls commented 10 months ago

Coverage Status

coverage: 73.884% (+0.04%) from 73.849% when pulling 9af5485d2a98e70976ba16ed93c59f1bf9c0840f on mrcook:issn-validator into 8d50f2fd8c2f02fbdf1d44d66171b955c2f4eb50 on go-playground:master.