Skip to content

Support for dynamic fields? #89

@ezheidtmann

Description

@ezheidtmann

Hey there, DRF docs looks really cool. But it looks like the project doesn't currently have support for viewsets that implement a get_serializer method. In my case, I use information from the request (specifically the token scopes) to determine the fields available to the client. This means that it's an error to instantiate a serializer without providing a request variable in a context kwarg. And DRF-docs does exactly this in api_endpoint.py:50

Is there any way I can override the methods that determine fields to show? Thanks!

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