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:
|
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
|
|
||||||
|
|
Loading…
Reference in New Issue