-
Notifications
You must be signed in to change notification settings - Fork 9
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
QSTN: JsonParam int validation #83
Comments
@choonyme Hello 👋 |
@choonyme could you show the data structure please? |
It's |
@choonyme I need to think. Looks like some rules need to be added(
|
@choonyme published. I'll update docs later. I'm really very busy |
Is there a way to validate an int property with JsonParam? So far I can only pass in CompositeRules but nothing other than that.
For example,
@validate_params(
JsonParam({
'namespace': [int],
'key': [MinLength(1), MaxLength(255)],
'value': [MaxLength(255)] }, required=True, as_list=True)
)
This 'namespace' type would result in an error. Let me know if there's a way to achieve this. Thanks.
The text was updated successfully, but these errors were encountered: