You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
HeaderParameter constraint-validators receive array value by default #8499
Description
The symfony constraint validators e.g. Symfony\Component\Validator\Constraints\NotBlankValidator receive array value by default. Because of that if we pass empty string then validation does not work. Is this a bug or a feature?
It is correct to need to add the nativeType for this, maybe that we should find a more user-friendly way of declaring that ? Or just a documentation PR ? I'm thinking a new SingularHeaderParameter (or maybe a better name ^^).
Activity
fix(state): treat single-value header parameters as scalar
fix(state): treat single-value header parameters as scalar
soyuka commentedon Sep 29, 2026
It is correct to need to add the nativeType for this, maybe that we should find a more user-friendly way of declaring that ? Or just a documentation PR ? I'm thinking a new
SingularHeaderParameter(or maybe a better name ^^).feat(metadata): add ScalarHeaderParameter (api-platform#8679)