Skip to content
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

problem with form validation #49

Open
michalbundyra opened this issue Jan 15, 2020 · 0 comments
Open

problem with form validation #49

michalbundyra opened this issue Jan 15, 2020 · 0 comments

Comments

@michalbundyra
Copy link
Member

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

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

No branches or pull requests

1 participant