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: definitions:
JsonResponse: JsonResponse:
type: object type: object
required:
- msg
- result
properties: properties:
msg: msg:
type: string type: string
required: true
result: result:
type: string type: string
required: true
JsonSuccess: JsonSuccess:
allOf: allOf:
@ -641,4 +642,3 @@ definitions:
id: id:
type: integer type: integer
format: int64 format: int64
required: true