Skip to content

detail_route/list_route doesn't allow to disable schema generation #5995

Closed

Description

Would be nice if detail_route or list_route woudl allow to disable schema generation
by setting arg schema=None.

    @detail_route(
        methods=['get', ],
        schema=None,
        ...
    )

At the moment I have to build separate view

class MyViewSet(mixins.ListModelMixin, viewsets.GenericViewSet):
    ...
    schema = None
    ...

Activity

  1. rpkilby commented on May 18, 2018

    @rpkilby
    Contributor

    Hi @Ola-t. Could you check to see if #5992 fixes your issue?

  2. self-assigned this
    on May 31, 2018
  3. rpkilby commented on May 31, 2018

    @rpkilby
    Contributor

    Hi @Ola-t. I've updated the PR. How about now?

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

Metadata

Metadata

Assignees

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