Skip to content

Update supported types of custom denormalizer in serialization.md#2290

Open
jdreesen wants to merge 1 commit into
api-platform:4.3from
jdreesen:patch-1
Open

Update supported types of custom denormalizer in serialization.md#2290
jdreesen wants to merge 1 commit into
api-platform:4.3from
jdreesen:patch-1

Conversation

@jdreesen

@jdreesen jdreesen commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

The getSupportedTypes method of the custom normalizer in the “Serialization Process” docs are wrong.

The denormalizer does not support any type.

It just supports the Dummy class in non-cacheable mode (false), because supportsDenormalization looks at the $data and $context to decide if it's supported.

See here for a description of how getSupportedTypes works.

Also related: api-platform/api-platform#2737

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