Skip to content
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

Spaces in a properly formatted IBAN will result in a validation error #142

Closed
FunnyPaul opened this issue Jun 30, 2023 · 3 comments
Closed
Labels

Comments

@FunnyPaul
Copy link

In the 5.3.1 version used in the MVC example (which can be downloaded here), a formatted, valid IBAN is also validated as such.

However, not in the current version 5.9.0, only if the spaces have been removed. Of course, that makes handling more difficult, since I have to replace the spaces in the model, validate them again, then put the formatted string in again, etc.

Is there an option that formatted IBANs that are correct can also be validated without errors?

@FunnyPaul FunnyPaul added the bug label Jun 30, 2023
@skwasjer
Copy link
Owner

skwasjer commented Jun 30, 2023

This was changed in v5.7.0

Both the data annotations and fluent validation implementations now have a strict parameter (default true), with which you can allow more relaxed validation (whitespace, casing). I will update the wiki when I have some time.

And here is the related discussion: #93 and PR #95

@FunnyPaul
Copy link
Author

Many thanks for the quick and competent answer. Then it's not a bug :-)

@skwasjer skwasjer closed this as completed Jul 1, 2023
@skwasjer
Copy link
Owner

AspNetCoreExample updated with non-strict in #159.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants