Skip to content

feat(api): use ValidationError with a field speficied when possible #2615

feat(api): use ValidationError with a field speficied when possible

feat(api): use ValidationError with a field speficied when possible #2615

Triggered via pull request January 16, 2025 13:52
Status Success
Total duration 4m 24s
Artifacts

api.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 14 warnings
API Lint
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/site-packages/pip/_internal/metadata/importlib/_dists.py:77: DeprecationWarning: Unimplemented abstract methods {'locate_file'} return cls(files, info_location)
API Lint: weblate/api/views.py#L2264
[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.
API Lint: weblate/api/views.py#L2320
[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.
tag-description: weblate-openapi.yaml#L10471
Tag object should contain `description` field.
tag-description: weblate-openapi.yaml#L10472
Tag object should contain `description` field.
tag-description: weblate-openapi.yaml#L10473
Tag object should contain `description` field.
tag-description: weblate-openapi.yaml#L10474
Tag object should contain `description` field.
tag-description: weblate-openapi.yaml#L10475
Tag object should contain `description` field.
tag-description: weblate-openapi.yaml#L10482
Tag object should contain `description` field.
tag-description: weblate-openapi.yaml#L10483
Tag object should contain `description` field.
tag-description: weblate-openapi.yaml#L10495
Tag object should contain `description` field.
tag-description: weblate-openapi.yaml#L10498
Tag object should contain `description` field.
operation-summary: weblate-openapi.yaml#L15
Operation object should contain `summary` field.
API Lint: weblate/api/views.py#L2088
[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".
API Lint: weblate/api/views.py#L1216
[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".
API Lint: weblate/api/views.py#L544
[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".
API Lint: weblate/api/serializers.py#L284
[RoleViewSet > RoleSerializer]: could not resolve serializer field "PermissionSerializer()". Defaulting to "string"