Skip to content

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

Merged
soyuka merged 1 commit into
api-platform:4.3from
jdreesen:patch-1
Jun 11, 2026
Merged

Update supported types of custom denormalizer in serialization.md#2290
soyuka merged 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

@soyuka soyuka merged commit 07005ed into api-platform:4.3 Jun 11, 2026
3 checks passed
@jdreesen jdreesen deleted the patch-1 branch June 11, 2026 21:18
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