feat: use another schema for poll creation

This is an attempt at handling the requirements
pull/17/head
Dominique Merle 4 years ago
parent efed66a31e
commit 729ce952d8

@ -0,0 +1,8 @@
type: object
description:
$ref: 'poll.md'
properties:
$ref: 'poll-properties.yaml'
required:
- subject
- proposals

@ -3,6 +3,3 @@ description:
$ref: 'poll.md'
properties:
$ref: 'poll-properties.yaml'
required:
- title
- proposals

@ -18,7 +18,7 @@ post:
content:
application/json:
schema:
$ref: ../components/schemas/poll.yaml
$ref: ../components/schemas/poll-new.yaml
responses:
'201':
description: Created

Loading…
Cancel
Save