Skip to content

[Serializer] Selecting a particular Normalizer to use? #18066

Closed
@mpdude

Description

@mpdude

Hi there,

the documentation lists many different normalizers that are supported out of the box and – to my understanding – active by default when using the full stack framework.

But one question I am facing right now seems to be unanswered: Can I (how?) choose a particular normalizer for a given class?

Say, I have a MyBlogPost class that is included in data to be serialized, and I want the PropertyNormalizer to be used for it, not the ObjectNormalizer.

What is the recommended way to do this? I can try to write the docs, but need initial guidance.

Re. #17912 – are contributions for this section still pending the revamp?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions