Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

problem with form validation #44

Open
sneps85 opened this issue Feb 19, 2016 · 1 comment
Open

problem with form validation #44

sneps85 opened this issue Feb 19, 2016 · 1 comment

Comments

@sneps85
Copy link

sneps85 commented Feb 19, 2016

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?

@michalbundyra
Copy link
Member

This repository has been closed and moved to laminas/laminas-form; a new issue has been opened at laminas/laminas-form#49.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants