Skip to content

Conversation

yasinpalizban
Copy link

Hi i add two new functionality to decorators called IsNatural and IsNaturalNoZero.

here is simple definition for them

IsNatural if field contains anything other than a natural number: 0, 1, 2, 3, etc.  

iSNaturalNoZero if field contains anything other than a natural number, except zero: 1, 2, 3, etc.

@Clashsoft
Copy link
Contributor

Clashsoft commented Aug 5, 2023

Why when you can just combine @IsInt and @IsPositive?

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

Successfully merging this pull request may close these issues.

2 participants