Add arrays bounds

pull/13/head
Nathanaël Jourdane 4 years ago committed by guhur
parent 6aea7fa03a
commit 3e5ee16dcd

@ -19,6 +19,8 @@ properties:
grades: grades:
type: array type: array
description: The grades on which one judges a candidate. description: The grades on which one judges a candidate.
minItems: 2
maxItems: 10
items: items:
$ref: ./grade.yaml $ref: ./grade.yaml
judges: judges:

@ -10,6 +10,8 @@ properties:
according to the grades list, following the order of the candidates array according to the grades list, following the order of the candidates array
defined when the related poll has been created. defined when the related poll has been created.
examples: [0, 6, 3, 2, 2] examples: [0, 6, 3, 2, 2]
minItems: 2
maxItems: 20
items: items:
type: integer type: integer
format: int16 format: int16

Loading…
Cancel
Save