-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
validator for IBAN #1297
Comments
It is quite a hard task to have fully functional IBAN validator with country specific checks. Here is an old comment of mine explaining it why it would be so. |
make sens but can we just check:
|
There are some existing libraries about IBAN validation. https://github.com/almerlucke/go-iban Some are maintained. Maybe looking at them could help. |
please note, my point is not to implement the same thing or use one of this lib as a dependency. It could be done, but then the maintenance might be a pain, especially for something as specific as IBAN I'm more likely to suggest people who need IBAN validation to use one of the library I listed in a go-playground/validator custom validator https://pkg.go.dev/github.com/go-playground/validator/v10#hdr-Custom_Validation_Functions |
Fair answer, tho I would not really call IBAN particularly specific, since it's an EU-wide standard, and Social-Security-Numbers are also part of the spec. |
Package version eg. v9, v10:
v10
Issue, Question or Enhancement:
is it possible to add validator for IBAN?
The text was updated successfully, but these errors were encountered: