diff --git a/dojo/api_v2/views.py b/dojo/api_v2/views.py index 76521f5e00..a2672e8726 100644 --- a/dojo/api_v2/views.py +++ b/dojo/api_v2/views.py @@ -298,6 +298,7 @@ def get_queryset(self): # Authorization: object-based # @extend_schema_view(**schema_with_prefetch()) +# Nested models with prefetch make the response schema too long for Swagger UI class EndPointViewSet( PrefetchDojoModelViewSet, ): @@ -353,7 +354,8 @@ def generate_report(self, request, pk=None): # Authorization: object-based -@extend_schema_view(**schema_with_prefetch()) +# @extend_schema_view(**schema_with_prefetch()) +# Nested models with prefetch make the response schema too long for Swagger UI class EndpointStatusViewSet( PrefetchDojoModelViewSet, ): @@ -382,7 +384,8 @@ def get_queryset(self): # Authorization: object-based -@extend_schema_view(**schema_with_prefetch()) +# @extend_schema_view(**schema_with_prefetch()) +# Nested models with prefetch make the response schema too long for Swagger UI class EngagementViewSet( PrefetchDojoModelViewSet, ra_api.AcceptedRisksMixin, @@ -636,7 +639,8 @@ def download_file(self, request, file_id, pk=None): return generate_file_response(file_object) -@extend_schema_view(**schema_with_prefetch()) +# @extend_schema_view(**schema_with_prefetch()) +# Nested models with prefetch make the response schema too long for Swagger UI class RiskAcceptanceViewSet( PrefetchDojoModelViewSet, ): @@ -735,7 +739,8 @@ def get_queryset(self): # Authorization: configuration -@extend_schema_view(**schema_with_prefetch()) +# @extend_schema_view(**schema_with_prefetch()) +# Nested models with prefetch make the response schema too long for Swagger UI class CredentialsMappingViewSet( PrefetchDojoModelViewSet, ): @@ -1475,7 +1480,8 @@ def get_queryset(self): # Authorization: object-based -@extend_schema_view(**schema_with_prefetch()) +# @extend_schema_view(**schema_with_prefetch()) +# Nested models with prefetch make the response schema too long for Swagger UI class JiraIssuesViewSet( PrefetchDojoModelViewSet, ): @@ -1591,7 +1597,8 @@ def get_queryset(self): # Authorization: object-based -@extend_schema_view(**schema_with_prefetch()) +# @extend_schema_view(**schema_with_prefetch()) +# Nested models with prefetch make the response schema too long for Swagger UI class DojoMetaViewSet( PrefetchDojoModelViewSet, ): @@ -1902,7 +1909,8 @@ def partial_update(self, request, pk=None): # Authorization: object-based -@extend_schema_view(**schema_with_prefetch()) +# @extend_schema_view(**schema_with_prefetch()) +# Nested models with prefetch make the response schema too long for Swagger UI class StubFindingsViewSet( PrefetchDojoModelViewSet, ): @@ -1941,7 +1949,8 @@ def get_queryset(self): # Authorization: object-based -@extend_schema_view(**schema_with_prefetch()) +# @extend_schema_view(**schema_with_prefetch()) +# Nested models with prefetch make the response schema too long for Swagger UI class TestsViewSet( PrefetchDojoModelViewSet, ra_api.AcceptedRisksMixin, @@ -2149,7 +2158,8 @@ def get_queryset(self): return Test_Type.objects.all().order_by("id") -@extend_schema_view(**schema_with_prefetch()) +# @extend_schema_view(**schema_with_prefetch()) +# Nested models with prefetch make the response schema too long for Swagger UI class TestImportViewSet( PrefetchDojoModelViewSet, ):