From d2bbc461e4b2bb473c4a190aacbf4ecf4796da4b Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Fri, 23 Oct 2015 13:25:12 +0100 Subject: [PATCH] mark stateKey as required in room/{id}/state Swagger insists that path params be mandatory. --- api/client-server/v1/room_state.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/client-server/v1/room_state.yaml b/api/client-server/v1/room_state.yaml index 0c0e76e6..bd8e2946 100644 --- a/api/client-server/v1/room_state.yaml +++ b/api/client-server/v1/room_state.yaml @@ -51,15 +51,15 @@ paths: type: string name: stateKey description: The state_key for the state to send. Defaults to the empty string. - required: false + required: true x-example: "" - in: body name: body schema: type: object - example: | + example: |- { - "name": "The room name" + "name": "New name for the room" } responses: 200: