Skip to content

Conversation

@mlebkowski
Copy link
Member

Add ReflectionExtractor to get the type of nested fields from their types. This also breaks GET payloads, since all of their types are "string", because they are transported using a query string. Without the ReflectionExtractor, the discovered type was null and the value was coalesced to whatever the class had. With it, the correct type is discovered, but a mismatch happens, because all input types are "string". Adding csv format when deserializing GET payloads triggers the type juggling/coalescing inside of the ObjectNormalizer and everything starts working again

Trello card: n/a
Does this PR affect any security-relevant code?: no

Please consider Conventional Comments when commenting on PRs

Add ReflectionExtractor to get the type of nested fields from their types.
This also breaks GET payloads, since all of their types are "string", because they are transported using a query string. Without the ReflectionExtractor, the discovered type was `null` and the value was coalesced to whatever the class had. With it, the correct type is discovered, but a mismatch happens, because all input types are "string". Adding `csv` format when deserializing GET payloads triggers the type juggling/coalescing inside of the ObjectNormalizer and everything starts working again
@mlebkowski mlebkowski merged commit 3ba9475 into main Oct 20, 2025
1 check passed
@mlebkowski mlebkowski deleted the feature/deserialize-nested-objects branch October 20, 2025 09:55
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.

2 participants