Skip to content

Commit

Permalink
docs: fix incorrect type for resource parameter
Browse files Browse the repository at this point in the history
It's not a UUID, it's a string, e.g. "foo:123"
  • Loading branch information
danipran committed Apr 5, 2024
1 parent 91b4910 commit 7693a8d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hours/viewsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -652,9 +652,10 @@ def copy_date_periods(self, request, pk=None):
parameters=[
OpenApiParameter(
"resource",
OpenApiTypes.UUID,
OpenApiTypes.STR,
OpenApiParameter.QUERY,
description="Filter by resource id or multiple resource ids (comma-separated)", # noqa
description="Filter by resource id or multiple resource ids "
"(comma-separated)",
),
OpenApiParameter(
"data_source",
Expand Down

0 comments on commit 7693a8d

Please sign in to comment.