From 432c78f3b5f3d31b9d1a9ea9ac71b75eecff789c Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Wed, 4 May 2016 14:55:43 +0100 Subject: [PATCH] Fix the swagger for /search so that it works without preprocessing Makes the /search swagger work when it is imported directly into the swagger-UI without preprocessing by dump_swagger --- api/client-server/search.yaml | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/api/client-server/search.yaml b/api/client-server/search.yaml index 97a6d8c6..32a34409 100644 --- a/api/client-server/search.yaml +++ b/api/client-server/search.yaml @@ -134,7 +134,7 @@ paths: key: type: string title: Group Key - description: |- + description: |- Key that defines the group. enum: ["room_id", "sender"] required: ["search_term"] @@ -179,8 +179,7 @@ paths: type: object title: Event description: The event that matched. - allOf: - - "$ref": "definitions/event-schemas/schema/core-event-schema/room_event.yaml" + "$ref": "definitions/event-schemas/schema/core-event-schema/room_event.yaml" context: type: object title: Event Context @@ -217,19 +216,17 @@ paths: title: Events Before description: Events just before the result. items: - type: object title: Event - allOf: - - "$ref": "definitions/event-schemas/schema/core-event-schema/room_event.yaml" + type: object + "$ref": "definitions/event-schemas/schema/core-event-schema/room_event.yaml" events_after: type: array title: Events After description: Events just after the result. items: - type: object title: Event - allOf: - - "$ref": "definitions/event-schemas/schema/core-event-schema/room_event.yaml" + type: object + "$ref": "definitions/event-schemas/schema/core-event-schema/room_event.yaml" state: type: object title: Current state @@ -241,10 +238,7 @@ paths: type: array title: Room State items: - type: object - title: Event - allOf: - - "$ref": "definitions/event-schemas/schema/core-event-schema/room_event.yaml" + "$ref": "definitions/event-schemas/schema/core-event-schema/state_event.yaml" groups: type: object title: Groups