8000 bug: `id` is set to exclude attribute in deserialization and still included as `undefined` · Issue #69 · danivek/json-api-serializer · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
bug: id is set to exclude attribute in deserialization and still included as undefined #69
Open
@diosney

Description

@diosney

I've setup:

export const defaultSerializerOptions = {
  id                    : 'id',
  blacklist             : [
    'type'
  ],
  blacklistOnDeserialize: [
    'id',
    'type',
    'createdAt',
    'updatedAt'
  ]
};

But still on deserialization is giving me id = undefined since I'm not sending it, though I want to exclude it completely from deserialization.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0