Skip to content

Why Schema Generators check for permission? #7616

@bedilbek

Description

@bedilbek

While developing an api docs with openapi I was curious about one point in the process of schema generation.

Why do we need has_view_permissions method in BaseSchemaGenerator and what if this check is removed from OpenAPI schema generation? I could not understand the logic behind it, because at the end of the day it is just documentation generation which does not need to care about view permissions.

I understand that I may be missing some crucial point, so would be nice if anyone could shed the light upon this matter

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