You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
This discussion was converted from issue #7616 on March 03, 2021 14:48.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emojireacted with thumbs down emojireacted with laugh emojireacted with hooray emojireacted with confused emojireacted with heart emojireacted with rocket emojireacted with eyes emoji
-
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 inBaseSchemaGenerator
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
Beta Was this translation helpful? Give feedback.
All reactions