Skip to content

[Serializer] Streamlined context management #1526

Description

@dkarlovi

Currently, serializer context is quite simple by default which prevents from doing certain things:

  1. setting app-wide settings (for example, allow_extra_attributes=false as in disallow extra field when denormalization #1217)
  2. setting resource-wide settings
  3. setting request-specific settings (for example, setting per-user / OAuth client timezone for DateTime (de)normalization)

IMO it would make sense to provide a way to build a context, maybe with a new service tag? WDYT?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions