docs: Make Swagger "require" fields uniform.

As the Swagger specification indicates, whether the properties inside a
model are required or not must be defined inside a separate "required"
field at the root of the model.

For fields like "parameters", that has to be specified inside each
parameter's key.
This commit is contained in:
Yago González 2017-05-23 15:38:46 -07:00 committed by Tim Abbott
parent fa081146d1
commit 1fc1cafd6f
1 changed files with 3 additions and 3 deletions

View File

@ -407,13 +407,14 @@ securityDefinitions:
definitions:
JsonResponse:
type: object
required:
- msg
- result
properties:
msg:
type: string
required: true
result:
type: string
required: true
JsonSuccess:
allOf:
@ -641,4 +642,3 @@ definitions:
id:
type: integer
format: int64
required: true