Browse Source

Add arrays bounds

pull/13/head
Nathanaël Jourdane 2 years ago
committed by guhur
parent
commit
3e5ee16dcd
  1. 2
      openapi/components/schemas/poll.yaml
  2. 2
      openapi/components/schemas/result.yaml

2
openapi/components/schemas/poll.yaml

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

2
openapi/components/schemas/result.yaml

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