mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-02-23 06:23:43 +01:00
Take object, not bool, as param
Throughout our API we take objects. And swagger is unhappy with not doing so.
This commit is contained in:
parent
8c32627751
commit
9c733a45e8
|
|
@ -470,14 +470,21 @@ paths:
|
||||||
description: |
|
description: |
|
||||||
The identifier for the rule.
|
The identifier for the rule.
|
||||||
- in: body
|
- in: body
|
||||||
name: <body>
|
name: body
|
||||||
description: |
|
description: |
|
||||||
Whether the push rule is enabled or not.
|
Whether the push rule is enabled or not.
|
||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: boolean
|
type: object
|
||||||
|
properties:
|
||||||
|
enabled:
|
||||||
|
type: boolean
|
||||||
|
description: Whether the push rule is enabled or not.
|
||||||
|
required: ["enabled"]
|
||||||
example: |-
|
example: |-
|
||||||
true
|
{
|
||||||
|
"enabled": true
|
||||||
|
}
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: The push rule was enabled or disabled.
|
description: The push rule was enabled or disabled.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue