replace definitions/*event.yaml with symlinks to /event-schemas/

This commit is contained in:
Mark Haines 2015-09-17 13:09:35 +01:00
parent 2cf8da6b20
commit c49338006a
11 changed files with 34 additions and 62 deletions

1
api/client-server/v1/core Symbolic link
View file

@ -0,0 +1 @@
events/core

View file

@ -1,7 +0,0 @@
type: object
description: A Matrix Event
properties:
event_id:
type: string
description: An event ID.
required: ["event_id"]

View file

@ -1,9 +0,0 @@
type: object
description: A Matrix Room Event
properties:
event_id:
type: string
description: An event ID.
room_id:
type: string
required: ["event_id", "room_id"]

View file

@ -1,11 +0,0 @@
type: object
description: A Matrix State Event
properties:
event_id:
type: string
description: An event ID.
room_id:
type: string
state_key:
type: string
required: ["event_id", "room_id", "state_key"]

1
api/client-server/v1/events Symbolic link
View file

@ -0,0 +1 @@
../../../event-schemas/schema/v1

View file

@ -205,4 +205,4 @@ paths:
type: object
title: PresenceEvent
allOf:
- "$ref": "definitions/event.yaml"
- "$ref": "events/core/event.json"

View file

@ -82,7 +82,7 @@ paths:
type: object
title: RoomEvent
allOf:
- "$ref": "definitions/room_event.yaml"
- "$ref": "events/core/room_event.json"
400:
description: "Bad pagination ``from`` parameter."
"/initialSync":
@ -253,7 +253,7 @@ paths:
type: object
title: Event
allOf:
- "$ref": "definitions/event.yaml"
- "$ref": "events/core/event.json"
rooms:
type: array
items:
@ -294,7 +294,7 @@ paths:
type: object
title: RoomEvent
allOf:
- "$ref": "definitions/room_event.yaml"
- "$ref": "events/core/room_event.json"
required: ["start", "end", "chunk"]
state:
type: array
@ -307,7 +307,7 @@ paths:
title: StateEvent
type: object
allOf:
- "$ref": "definitions/state_event.yaml"
- "$ref": "events/core/state_event.json"
visibility:
type: string
enum: ["private", "public"]
@ -350,6 +350,6 @@ paths:
}
schema:
allOf:
- "$ref": "definitions/event.yaml"
- "$ref": "events/core/event.json"
404:
description: The event was not found or you do not have permission to read this event.