summaryrefslogtreecommitdiff
path: root/internal/api/model/poll.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/model/poll.go')
-rw-r--r--internal/api/model/poll.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/api/model/poll.go b/internal/api/model/poll.go
index 5603ff222..089dfc0f0 100644
--- a/internal/api/model/poll.go
+++ b/internal/api/model/poll.go
@@ -73,26 +73,26 @@ type PollOption struct {
// PollRequest models a request to create a poll.
//
-// swagger:model pollRequest
+// swagger:ignore
type PollRequest struct {
// Array of possible answers.
// If provided, media_ids cannot be used, and poll[expires_in] must be provided.
// name: poll[options]
- Options []string `form:"options" json:"options" xml:"options"`
+ Options []string `form:"poll[options][]" json:"options" xml:"options"`
// Duration the poll should be open, in seconds.
// If provided, media_ids cannot be used, and poll[options] must be provided.
- ExpiresIn int `form:"expires_in" xml:"expires_in"`
+ ExpiresIn int `form:"poll[expires_in]" xml:"expires_in"`
// Duration the poll should be open, in seconds.
// If provided, media_ids cannot be used, and poll[options] must be provided.
ExpiresInI interface{} `json:"expires_in"`
// Allow multiple choices on this poll.
- Multiple bool `form:"multiple" json:"multiple" xml:"multiple"`
+ Multiple bool `form:"poll[multiple]" json:"multiple" xml:"multiple"`
// Hide vote counts until the poll ends.
- HideTotals bool `form:"hide_totals" json:"hide_totals" xml:"hide_totals"`
+ HideTotals bool `form:"poll[hide_totals]" json:"hide_totals" xml:"hide_totals"`
}
// PollVoteRequest models a request to vote in a poll.