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>
pull/1591/head
Kévin Commaille 11 months ago committed by GitHub
parent b79fa06cfb
commit 30845e189f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save