Skip to content

Fix all spectacular warnings and add OpenAPI spec to release draft#584

Merged
jennydaman merged 7 commits into
FNNDSC:masterfrom
jennydaman:fix-spectacular-warnings
Oct 2, 2024
Merged

Fix all spectacular warnings and add OpenAPI spec to release draft#584
jennydaman merged 7 commits into
FNNDSC:masterfrom
jennydaman:fix-spectacular-warnings

Conversation

@jennydaman

Copy link
Copy Markdown
Contributor
  • Most get_queryset overrides need to have an extra two lines of code if getattr(self, "swagger_fake_view", False): return TheModel.objects.none()
  • Added a class decorator @core.serializers.file_serializer which unifies the duplicated code between file serializers which provide the fields fname, fsize, file_resource, owner_username, parent_folder, and owner

@jennydaman jennydaman merged commit f32519a into FNNDSC:master Oct 2, 2024
@jennydaman jennydaman deleted the fix-spectacular-warnings branch October 2, 2024 04:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant