-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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(api): various small fixes for schema generation #14088
Merged
Merged
+14
−5
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fix the following issue: 'gunicorn stderr | /app/src/weblate/api/views.py: Warning [GroupViewSet]: could not derive type of path parameter "language_code" because model "weblate.auth.models.Group" contained no such field. Consider annotating parameter with @extend_schema. Defaulting to "string".'
Fix the following issue: 'gunicorn stderr | /app/src/weblate/api/views.py: Warning [ComponentViewSet]: could not derive type of path parameter "project_slug" because model "weblate.trans.models.component.Component" contained no such field. Consider annotating parameter with @extend_schema. Defaulting to "string".'
Fix the following issue: 'gunicorn stderr | /app/src/weblate/api/views.py: Warning [ComponentListViewSet]: could not derive type of path parameter "component_slug" because model "weblate.trans.models.componentlist.ComponentList" contained no such field. Consider annotating parameter with @extend_schema. Defaulting to "string".'
Fix the following issue: 'gunicorn stderr | Warning: @extend_schema_view argument "list" was not found on view TasksViewSet. method override for "list" will be ignored.'
Fix the following issue: 'gunicorn stderr | /app/src/weblate/api/views.py: Error [TasksViewSet]: unable to guess serializer. This is graceful fallback handling for APIViews. Consider using GenericAPIView as view base class, if view is under your control. Either way you may want to add a serializer_class (or method). Ignoring view for now.'
Fix the following issue: 'gunicorn stderr | /app/src/weblate/api/views.py: Error [Search]: unable to guess serializer. This is graceful fallback handling for APIViews. Consider using GenericAPIView as view base class, if view is under your control. Either way you may want to add a serializer_class (or method). Ignoring view for now.'
for more information, see https://pre-commit.ci
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #14088 +/- ##
==========================================
- Coverage 91.01% 90.99% -0.02%
==========================================
Files 608 608
Lines 63617 63655 +38
Branches 6582 6588 +6
==========================================
+ Hits 57901 57923 +22
- Misses 4024 4034 +10
- Partials 1692 1698 +6
|
Merged, thanks for your contribution! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changelog
The format is based on Keep a Changelog.
Fixed
The purpose of this PR is to fix most the remaining error and warning log messages which are issued when a user sends a GET request to
/api/docs/
.Relates to #12584.