diff --git a/changelogs/client_server/newsfragments/1585.clarification b/changelogs/client_server/newsfragments/1585.clarification new file mode 100644 index 00000000..5b26ae97 --- /dev/null +++ b/changelogs/client_server/newsfragments/1585.clarification @@ -0,0 +1 @@ +Remove unnecessary `oneOf`s in JSON schemas. diff --git a/data/api/client-server/definitions/push_rule.yaml b/data/api/client-server/definitions/push_rule.yaml index 4f1b41ad..a6534895 100644 --- a/data/api/client-server/definitions/push_rule.yaml +++ b/data/api/client-server/definitions/push_rule.yaml @@ -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. diff --git a/data/api/client-server/notifications.yaml b/data/api/client-server/notifications.yaml index 1cde576b..21d6640a 100644 --- a/data/api/client-server/notifications.yaml +++ b/data/api/client-server/notifications.yaml @@ -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. diff --git a/data/api/client-server/pushrules.yaml b/data/api/client-server/pushrules.yaml index 77a07afd..88013307 100644 --- a/data/api/client-server/pushrules.yaml +++ b/data/api/client-server/pushrules.yaml @@ -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: {