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 1 year 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: properties:
actions: actions:
items: items:
oneOf: type: ["string", "object"]
- type: object
- type: string
type: array type: array
description: |- description: |-
The actions to perform when this rule is matched. 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. The action(s) to perform when the conditions for this rule are met.
See [Push Rules: API](/client-server-api/#push-rules-api). See [Push Rules: API](/client-server-api/#push-rules-api).
items: items:
oneOf: type: ["object", "string"]
- type: object
- type: string
event: event:
title: Event title: Event
description: The Event object for the event that triggered the notification. description: The Event object for the event that triggered the notification.

@ -458,9 +458,7 @@ paths:
type: array type: array
description: The action(s) to perform when the conditions for this rule are met. description: The action(s) to perform when the conditions for this rule are met.
items: items:
oneOf: type: ["string", "object"]
- type: string
- type: object
conditions: conditions:
type: array type: array
description: |- description: |-
@ -723,9 +721,7 @@ paths:
type: array type: array
description: The action(s) to perform for this rule. description: The action(s) to perform for this rule.
items: items:
oneOf: type: ["string", "object"]
- type: string
- type: object
required: required:
- actions - actions
examples: examples:
@ -801,9 +797,7 @@ paths:
type: array type: array
description: The action(s) to perform for this rule. description: The action(s) to perform for this rule.
items: items:
oneOf: type: ["string", "object"]
- type: string
- type: object
required: required:
- actions - actions
example: { example: {

Loading…
Cancel
Save