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

Checking object parameters #153

Open
zyyip opened this issue Jul 27, 2022 · 1 comment
Open

Checking object parameters #153

zyyip opened this issue Jul 27, 2022 · 1 comment

Comments

@zyyip
Copy link

zyyip commented Jul 27, 2022

Hi, how would i check object params? There are only examples for arrays.

@floriankraemer
Copy link

floriankraemer commented Oct 4, 2022

The lib works only with arrays. Use reflections to convert your object into an array or implement a toArray() method that does that for you in your object. The library seems to be no longer maintained, otherwise I would have suggested to create a PR to add object support.

Check this fork, if its not already supporting objects I'm sure he will accept a proper PR. https://github.com/somnambulist-tech/validation

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

2 participants