Skip to content

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
@func0der func0der force-pushed the allow-nested-input-filters branch from 5017419 to 46961ce Compare September 20, 2023 14:18
@func0der func0der force-pushed the allow-nested-input-filters branch from 46961ce to 1a78d94 Compare September 20, 2023 14:26
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.

3 participants