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
This commit is contained in:
parent
5383754a40
commit
432c78f3b5
1 changed files with 7 additions and 13 deletions
|
@ -179,8 +179,7 @@ paths:
|
||||||
type: object
|
type: object
|
||||||
title: Event
|
title: Event
|
||||||
description: The event that matched.
|
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:
|
context:
|
||||||
type: object
|
type: object
|
||||||
title: Event Context
|
title: Event Context
|
||||||
|
@ -217,19 +216,17 @@ paths:
|
||||||
title: Events Before
|
title: Events Before
|
||||||
description: Events just before the result.
|
description: Events just before the result.
|
||||||
items:
|
items:
|
||||||
type: object
|
|
||||||
title: Event
|
title: Event
|
||||||
allOf:
|
type: object
|
||||||
- "$ref": "definitions/event-schemas/schema/core-event-schema/room_event.yaml"
|
"$ref": "definitions/event-schemas/schema/core-event-schema/room_event.yaml"
|
||||||
events_after:
|
events_after:
|
||||||
type: array
|
type: array
|
||||||
title: Events After
|
title: Events After
|
||||||
description: Events just after the result.
|
description: Events just after the result.
|
||||||
items:
|
items:
|
||||||
type: object
|
|
||||||
title: Event
|
title: Event
|
||||||
allOf:
|
type: object
|
||||||
- "$ref": "definitions/event-schemas/schema/core-event-schema/room_event.yaml"
|
"$ref": "definitions/event-schemas/schema/core-event-schema/room_event.yaml"
|
||||||
state:
|
state:
|
||||||
type: object
|
type: object
|
||||||
title: Current state
|
title: Current state
|
||||||
|
@ -241,10 +238,7 @@ paths:
|
||||||
type: array
|
type: array
|
||||||
title: Room State
|
title: Room State
|
||||||
items:
|
items:
|
||||||
type: object
|
"$ref": "definitions/event-schemas/schema/core-event-schema/state_event.yaml"
|
||||||
title: Event
|
|
||||||
allOf:
|
|
||||||
- "$ref": "definitions/event-schemas/schema/core-event-schema/room_event.yaml"
|
|
||||||
groups:
|
groups:
|
||||||
type: object
|
type: object
|
||||||
title: Groups
|
title: Groups
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue