Commit 92d252f3 authored by lain's avatar lain
Browse files

Poll Schema: Update and fix.

parent f09bb814
Pipeline #32544 passed with stages
in 23 minutes and 20 seconds
......@@ -28,8 +28,11 @@ defmodule Pleroma.Web.ApiSpec.Schemas.Poll do
votes_count: %Schema{
type: :integer,
nullable: true,
description: "How many votes have been received. Number, or null if `multiple` is false."
description: "How many votes have been received. Number."
voters_count: %Schema{
type: :integer,
description: "How many unique accounts have voted. Number."
voted: %Schema{
type: :boolean,
......@@ -61,7 +64,7 @@ defmodule Pleroma.Web.ApiSpec.Schemas.Poll do
expired: true,
multiple: false,
votes_count: 10,
voters_count: nil,
voters_count: 10,
voted: true,
own_votes: [
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment