Skip to content

style not included in utils.get_field_kwargs(); not aligned to DRF core arguments #288

Open
@regoawt

Description

@regoawt

Currently, if style is defined as a kwarg on a mongoengine field, utils.get_field_kwargs() method does not build the DRF serializer field with it. To achieve this one has to wrap serializers.build_field() and update the field_kwargs dictionary, which seems unnecessary?

Is this intended behaviour?

The style argument is listed as a DRF 'core argument' on the base serializer field:
https://www.django-rest-framework.org/api-guide/fields/#core-arguments

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