-
Notifications
You must be signed in to change notification settings - Fork 86
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
Recursive check for nested parameters #15
Comments
It doesn't feel very intuitive to be honest, and might be even incompatible with current design, since it's possible to add custom field for |
In my opinion, if you've set |
…udflare * commit 'c45cbd4215c0504d7e78ec8e81eba8517cb7b99c': FW-2077: add len and is_empty methods to Array and Map data types
Hello!
It is not issue itself, but more like feature request for future: it would be great to perform recursive check of nested parameters.
For example, you have JSON as POST-arguments like
{"a":{"b":{"c":1}},"d":2}
and it is parsed torequest.post.a.b.c = 1
andrequest.post.d = 2
. It would be great to set single rule likerequest.post ~ "^[0-9]+$"
to check all nested elements inrequest.post
variable, instead of making separate checks, adopting rule torequest.post.a.b.c ~ "^[0-9]+$"
andrequest.post.d ~"^[0-9]+$"
.In context of HTTP protocol, the same might be applicable for GET-arguments, headers, cookies or any parameter that may contain nested structure.
The text was updated successfully, but these errors were encountered: