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

Allow nested input filters #19

Open
wants to merge 33 commits into
base: master
Choose a base branch
from

Conversation

func0der
Copy link

To do nested input filter definitions, you basically need to InputFilter::add() an InputFilterInterface with the other inputs in them.

This is mostly needed for complex json or post data structures that one would like to validate.

We are changing the output of the errors key in ProblemDetailsResponse in that way, that we are adding new depth to the array.
This COULD result in issues, as the value of a field is supposed to be array<string, string> and now becomes array<string, array<string, string[]|string>> if that is even correct.
Theoretically there is not end to the depth of nesting input filters. We are just assuming one layer here.

I need opinions here, please. Is this a breaking change?

Laying all of those options out, my answer would be yes.

Not wanting to release another major so fast after the last one, I am also open to ideas on how to release this in 3.1 without breaking everything :D

func0der and others added 30 commits October 19, 2021 13:35
Migrate to Laminas/Mezzio and PHP 7.4
* [php8.0] Add php8 builds
Signed-off-by: Pascal Heidmann <pascal.heidmann@check24.de>

Co-authored-by: Pascal Heidmann <pascal.heidmann@check24.de>
use "roave/security-advisories:dev-latest" instead of "dev-master"
# Conflicts:
#	composer.json
[php-81] update to be compatible with php 8.1
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

Successfully merging this pull request may close these issues.

None yet

3 participants