You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Methods to validate non-positive and non-negative numbers to make the process more concise and standardized
Describe the solution you'd like
fromkohiimportNumberSchemaNumberSchema().nonnegative().validate(-1) # FalseNumberSchema().nonnegative().validate(0) # TrueNumberSchema().nonnegative().throw().validate(-1) # ValidationError: number must be greater than or equal to 0NumberSchema().nonpositive().validate(1) # FalseNumberSchema().nonpositive().validate(0) # TrueNumberSchema().nonpositive().throw().validate(1) # ValidationError: number must be less than or equal to 0
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Methods to validate non-positive and non-negative numbers to make the process more concise and standardized
Describe the solution you'd like
The text was updated successfully, but these errors were encountered: