You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mv-api-spec/openapi/components/schemas/poll.yaml

33 lines
847 B

type: object
properties:
id:
type: string
description: 'A unique identifier'
example: '1jDe1e5eF_IkaYPuoIYX'
readOnly: true
title:
type: string
example: 'What project should our neighbourhood invest in for the next year?'
description: 'The title of the poll'
candidates:
type: array
description: The candidates being judged in a poll.
minItems: 2
maxItems: 20
items:
$ref: ./candidate.yaml
grades:
type: array
description: The grades on which one judges a candidate.
items:
$ref: ./grade.yaml
judges:
type: array
description: The judges that are allowed to participate to the election.
items:
$ref: ./judge.yaml
restrict_judges:
type: boolean
description: True if anyone can participate to this poll, False otherwise.
example: false