typestack / class-validator

Decorator-based property validation for classes.
MIT License
11.01k stars 800 forks source link

feature: add `@IsISO4217` decorator to check currency codes #1549

Closed bassochette closed 1 year ago

bassochette commented 2 years ago

Description

validator.js offers validation for currency codes against the ISO4217 standard.

Proposed solution

Implement the @IsIso4217() decorator.

bassochette commented 2 years ago

I'd be glad to implement it and send a PR

braaar commented 2 years ago

Check out the existing validator in validator.js. It's a fairly new addition, so it hasn't been added here yet.

braaar commented 2 years ago

Last time I checked I think I saw that validator.js has been bumped so that 4217 should be available to implement right away, but don't quote me on that 😅

bassochette commented 2 years ago

I saw it in validator.js and needed it today sooooo pull request time ;)

NoNameProvided commented 1 year ago

This feature/fix has been released in 0.14.0.

github-actions[bot] commented 1 year ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.