diff --git a/swagger/definitions/resource/automation_rule.yml b/swagger/definitions/resource/automation_rule.yml index 3df291221..6252e845f 100644 --- a/swagger/definitions/resource/automation_rule.yml +++ b/swagger/definitions/resource/automation_rule.yml @@ -1,11 +1,12 @@ type: object properties: payload: + description: Response payload that contains automation rule(s) oneOf: - type: array + description: Array of automation rules (for listing endpoint) items: $ref: '#/components/schemas/automation_rule_item' - description: Array of automation rules (for listing endpoint) - $ref: '#/components/schemas/automation_rule_item' description: Single automation rule (for show/create/update endpoints) diff --git a/swagger/swagger.json b/swagger/swagger.json index 1b42a52f4..20deda254 100644 --- a/swagger/swagger.json +++ b/swagger/swagger.json @@ -7595,13 +7595,14 @@ "type": "object", "properties": { "payload": { + "description": "Response payload that contains automation rule(s)", "oneOf": [ { "type": "array", + "description": "Array of automation rules (for listing endpoint)", "items": { "$ref": "#/components/schemas/automation_rule_item" - }, - "description": "Array of automation rules (for listing endpoint)" + } }, { "$ref": "#/components/schemas/automation_rule_item"