From 9c733a45e8ddcc3e2983acb5ed353e91c4bec683 Mon Sep 17 00:00:00 2001 From: Daniel Wagner-Hall Date: Fri, 4 Dec 2015 17:36:19 +0000 Subject: [PATCH] Take object, not bool, as param Throughout our API we take objects. And swagger is unhappy with not doing so. --- api/client-server/pushrules.yaml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/api/client-server/pushrules.yaml b/api/client-server/pushrules.yaml index 8ac50ac7..475160bd 100644 --- a/api/client-server/pushrules.yaml +++ b/api/client-server/pushrules.yaml @@ -470,14 +470,21 @@ paths: description: | The identifier for the rule. - in: body - name: + name: body description: | Whether the push rule is enabled or not. required: true schema: - type: boolean + type: object + properties: + enabled: + type: boolean + description: Whether the push rule is enabled or not. + required: ["enabled"] example: |- - true + { + "enabled": true + } responses: 200: description: The push rule was enabled or disabled.