Closed as not planned
Closed as not planned
Description
Description
I want to build an API that only accepts german IBANs for payments.
Proposed solution
Add options to the decorators that allow to either
- whitelist country codes
- blacklist country codes
Each of the two params should allow an array of ISO3166-2 country codes as strings (or maybe use an enum for TS?).
Should look something like this for the API
class MyClass {
@IsIBAN({whitelistCountries: ["DE"]})
germanIBAN: string;
@IsIBAN({blacklistCountries: ["US"]})
nonUSIBAN: string;
}