Skip to content

serializers attr object is ignored during normalization #45

Open
@makepanic

Description

@makepanic

attrs is currently ignored.

One could fix this by calling the private this.normalizeUsingDeclaredMapping json serializer method before extracting the attributes, relationships. This is how the json-api serializer does it: https://github.com/emberjs/data/blob/v2.11.0/addon/serializers/json-api.js#L409

I think it should be part of the hal serializer.
If you're interested i could open a PR to implement it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions