Skip to content

Commit

Permalink
Fix openapi schema for task error
Browse files Browse the repository at this point in the history
  • Loading branch information
mdellweg committed Dec 5, 2024
1 parent 5356403 commit face5c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES/+task_error_schema.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed the openapi schema definition of task error.
3 changes: 1 addition & 2 deletions pulpcore/app/serializers/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ class TaskSerializer(ModelSerializer):
finished_at = serializers.DateTimeField(
help_text=_("Timestamp of when this task stopped execution."), read_only=True
)
error = serializers.DictField(
child=fields.JSONDictField(),
error = fields.JSONDictField(
help_text=_(
"A JSON Object of a fatal error encountered during the execution of this task."
),
Expand Down

0 comments on commit face5c1

Please sign in to comment.