fix: a poll has a subject

pull/17/head
Dominique Merle 4 years ago
parent 81d86be3b8
commit 00b7713eb3

@ -1,2 +1,2 @@
A `Poll` is the core model of the application. A `Poll` is the core model of the application.
A `Poll` exposes a list of `Proposal`s, and `Participant`s may individually give each `Proposal` a `Grade`. (in a `Ballot`) A `Poll` has a subject exposes a list of `Proposal`s, and `Participant`s may individually give each `Proposal` a `Grade`. (in a `Ballot`)

@ -20,9 +20,9 @@ properties:
# description: > # description: >
# A Universally Unique IDentifier for the poll. (version 4) # A Universally Unique IDentifier for the poll. (version 4)
# example: bb788552-727d-470b-827e-d7796248d293 # example: bb788552-727d-470b-827e-d7796248d293
title: subject:
type: string type: string
description: The title of the poll. description: The subject of the poll.
example: What project should our neighbourhood invest in for the next year? example: What project should our neighbourhood invest in for the next year?
description: description:
type: string type: string
@ -36,7 +36,7 @@ properties:
proposals: proposals:
type: array type: array
description: > description: >
The proposals being judged by the participants in a poll. The proposals being judged by the participants of the poll.
It makes no sense to have less than two proposals in a poll. It makes no sense to have less than two proposals in a poll.
minItems: 2 minItems: 2
maxItems: 20 maxItems: 20
@ -79,6 +79,6 @@ properties:
type: boolean type: boolean
description: True if anyone can participate in this poll, False otherwise. description: True if anyone can participate in this poll, False otherwise.
example: false example: false
required: # required:
- title # - title
- proposals # - proposals

Loading…
Cancel
Save