Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 7 commits into from
Oct 2, 2024

Conversation

jennydaman
Copy link
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
7 checks passed
@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