mirror of https://github.com/zulip/zulip.git
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:
parent
fa081146d1
commit
1fc1cafd6f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue