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

29 lines
651 B

type: object
properties:
id:
type: string
readOnly: true
title:
type: string
description: 'As <title>, I find these candidates:'
candidates:
type: array
minItems: 2
maxItems: 20
items:
$ref: ./candidate.yaml
description: The candidates being judged in a poll.
grades:
type: array
items:
$ref: ./grade.yaml
description: The grades on which one judges a candidate.
judges:
type: array
items:
$ref: ./judge.yaml
description: The judges that are allowed to participate to the election.
restrict_judges:
type: boolean
description: Can anyone create a judge?