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
1 changed files with 10 additions and 3 deletions
|
@ -470,14 +470,21 @@ paths:
|
|||
description: |
|
||||
The identifier for the rule.
|
||||
- in: body
|
||||
name: <body>
|
||||
name: body
|
||||
description: |
|
||||
Whether the push rule is enabled or not.
|
||||
required: true
|
||||
schema:
|
||||
type: boolean
|
||||
type: object
|
||||
properties:
|
||||
enabled:
|
||||
type: boolean
|
||||
description: Whether the push rule is enabled or not.
|
||||
required: ["enabled"]
|
||||
example: |-
|
||||
true
|
||||
{
|
||||
"enabled": true
|
||||
}
|
||||
responses:
|
||||
200:
|
||||
description: The push rule was enabled or disabled.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue