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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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