Skip to content

fix(state): preserve Type message when expectedTypes is set#7935

Merged
soyuka merged 2 commits intoapi-platform:4.3from
soyuka:fix-7894
Apr 29, 2026
Merged

fix(state): preserve Type message when expectedTypes is set#7935
soyuka merged 2 commits intoapi-platform:4.3from
soyuka:fix-7894

Conversation

@soyuka
Copy link
Copy Markdown
Member

@soyuka soyuka commented Apr 29, 2026

Q A
Branch? 4.3
Tickets refs #7894
License MIT
Doc PR N/A

Only fall back to the exception message when expectedTypes is empty (Symfony 8.1 BackedEnumNormalizer). Restores BC for the validator "This value should be of type ..." translation; the user-friendly message is still available via the hint parameter.

soyuka added 2 commits April 29, 2026 08:10
| Q             | A
| ------------- | ---
| Branch?       | 4.3
| Tickets       | refs api-platform#7894
| License       | MIT
| Doc PR        | N/A

Only fall back to the exception message when expectedTypes is empty
(Symfony 8.1 BackedEnumNormalizer). Restores BC for the validator
"This value should be of type ..." translation; the user-friendly
message is still available via the `hint` parameter.
@soyuka soyuka merged commit ac374fc into api-platform:4.3 Apr 29, 2026
118 of 119 checks passed
@soyuka soyuka deleted the fix-7894 branch April 29, 2026 12:21
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.

1 participant