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
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_permissionsmethod inBaseSchemaGeneratorand 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