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
I use a form to validate the input of my json rest api, but an exception occurs when i get a value that is not an array for a fieldset. Here an example:
All fine:
{
"article": {
"id": 1
}
}
All fine:
{
}
Exception in inputfilter
{
"article": null
}
Validationgroup is array("article" => array("id"))
How to allow article to be anything and get a validation error if its not an array with a valid id?
I use a form to validate the input of my json rest api, but an exception occurs when i get a value that is not an array for a fieldset. Here an example:
All fine:
{
"article": {
"id": 1
}
}
All fine:
{
}
Exception in inputfilter
{
"article": null
}
Validationgroup is array("article" => array("id"))
How to allow article to be anything and get a validation error if its not an array with a valid id?
Originally posted by @sneps85 at zendframework/zend-form#44
The text was updated successfully, but these errors were encountered: