Remove unnecessary oneOf
s in JSON schemas (#1585)
* Remove unnecessary `oneOf`s in JSON schemas Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr> * Add changelog Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr> --------- Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
parent
b79fa06cfb
commit
30845e189f
4 changed files with 6 additions and 15 deletions
|
@ -0,0 +1 @@
|
|||
Remove unnecessary `oneOf`s in JSON schemas.
|
|
@ -17,9 +17,7 @@ type: object
|
|||
properties:
|
||||
actions:
|
||||
items:
|
||||
oneOf:
|
||||
- type: object
|
||||
- type: string
|
||||
type: ["string", "object"]
|
||||
type: array
|
||||
description: |-
|
||||
The actions to perform when this rule is matched.
|
||||
|
|
|
@ -86,9 +86,7 @@ paths:
|
|||
The action(s) to perform when the conditions for this rule are met.
|
||||
See [Push Rules: API](/client-server-api/#push-rules-api).
|
||||
items:
|
||||
oneOf:
|
||||
- type: object
|
||||
- type: string
|
||||
type: ["object", "string"]
|
||||
event:
|
||||
title: Event
|
||||
description: The Event object for the event that triggered the notification.
|
||||
|
|
|
@ -458,9 +458,7 @@ paths:
|
|||
type: array
|
||||
description: The action(s) to perform when the conditions for this rule are met.
|
||||
items:
|
||||
oneOf:
|
||||
- type: string
|
||||
- type: object
|
||||
type: ["string", "object"]
|
||||
conditions:
|
||||
type: array
|
||||
description: |-
|
||||
|
@ -723,9 +721,7 @@ paths:
|
|||
type: array
|
||||
description: The action(s) to perform for this rule.
|
||||
items:
|
||||
oneOf:
|
||||
- type: string
|
||||
- type: object
|
||||
type: ["string", "object"]
|
||||
required:
|
||||
- actions
|
||||
examples:
|
||||
|
@ -801,9 +797,7 @@ paths:
|
|||
type: array
|
||||
description: The action(s) to perform for this rule.
|
||||
items:
|
||||
oneOf:
|
||||
- type: string
|
||||
- type: object
|
||||
type: ["string", "object"]
|
||||
required:
|
||||
- actions
|
||||
example: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue