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

Swagger warnings #250

Closed
purple-void opened this issue Jul 4, 2024 · 0 comments · Fixed by #263
Closed

Swagger warnings #250

purple-void opened this issue Jul 4, 2024 · 0 comments · Fixed by #263
Assignees
Labels
[ back-end / bug Something isn't working [ documentation / Improvements or additions to documentation

Comments

@purple-void
Copy link
Collaborator

purple-void commented Jul 4, 2024

Problem

Looking at the swagger doc gives warnings in the backend

Example:
Warning [UpvoteViewSet]: could not derive type of path parameter "id" because it is untyped and obtaining queryset from the viewset failed. Consider adding a type to the path (e.g. <int:id>) or annotating the parameter type with @extend_schema. Defaulting to "string".

Solution

possible solution: Stack Overflow suggestion
documentation

@purple-void purple-void self-assigned this Jul 4, 2024
@purple-void purple-void added [ documentation / Improvements or additions to documentation [ back-end / bug Something isn't working labels Jul 4, 2024
@purple-void purple-void linked a pull request Jul 10, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[ back-end / bug Something isn't working [ documentation / Improvements or additions to documentation
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant