-
Notifications
You must be signed in to change notification settings - Fork 30
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
Validating an array of objects #39
Comments
Hi @craig-cogdill . Your question makes a lot of sense. At the current state Slim-Validation won't validate payloads that start with an array. This is a limitation and I think that I'll try to find a way to fix the issue. |
I created the branch |
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
More of a help request than an issue...
I have a POST route that takes an array of objects as the body, like this:
I want to validate that only those two keys exist in each object (no extra keys), and that their values are correct (int and string).
Is it possible to validate this with the library? I have tried this:
So far I have not been successful and I am not sure what I am missing.
The text was updated successfully, but these errors were encountered: