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
When I validate the following object { "ProcessorId": "567", "Credentials": [ { "Id": "29c76e0b-8ede-4b60-8f30-56a18dcf6967", "Text": "0492192277" } ] }
The response is: Unexpected parameter in body.Credentials.1
When I try to validate the same as object (not an array), it works. { "ProcessorId": "567", "Credentials": { "Id": "29c76e0b-8ede-4b60-8f30-56a18dcf6967", "Text": "0492192277" } }
Is the is_array property ignored for custom_classes?
The text was updated successfully, but these errors were encountered:
Hi,
first of all - great plugin, thank you!
I've ran into an issue checking the items of an array of custom classes.
My plugin configuration looks like this:
{ "name": "request-firewall", "config": { "debug": true, "err_code": 422, "exact_match": { "/pcidss/InitiateAction": { "POST": { "content_type": "application/json", "body": { "ProcessorId": { "type": "string","max": "24","required": true,"match": "^[%w%s%.%-%:%(%);,=/]*$" }, "Credentials": { "type": "CredentialsObject","min": "1","required": true,"is_array": "1" } }, "custom_classes": { "CredentialsObject": { "Id": { "type": "string","min": "36","max": "36","required": true,"match": "^[%w%s%.%-%:%(%);,=/]*$" }, "Text": { "type": "string","max": "254","match": "^[%w%s%.%-%:%(%);,=/]*$" } } } } } } } }
When I validate the following object
{ "ProcessorId": "567", "Credentials": [ { "Id": "29c76e0b-8ede-4b60-8f30-56a18dcf6967", "Text": "0492192277" } ] }
The response is:
Unexpected parameter in body.Credentials.1
When I try to validate the same as object (not an array), it works.
{ "ProcessorId": "567", "Credentials": { "Id": "29c76e0b-8ede-4b60-8f30-56a18dcf6967", "Text": "0492192277" } }
Is the is_array property ignored for custom_classes?
The text was updated successfully, but these errors were encountered: