Take out the underscore restriction from state events

It's not needed anymore, and we should remove it while we're in the area.

Includes other misc changes to the schema layout.
This commit is contained in:
Travis Ralston 2018-08-27 19:07:32 -06:00
parent fd47184ce3
commit efef3412a0
3 changed files with 3 additions and 16 deletions

View file

@ -1,19 +1,7 @@
allOf: allOf:
- $ref: room_event.yaml - $ref: room_event.yaml
- $ref: sync_state_event.yaml
description: In addition to the Room Event fields, State Events have the following description: In addition to the Room Event fields, State Events have the following
additional fields. additional fields.
properties:
prev_content:
description: Optional. The previous ``content`` for this event. If there is no
previous content, this key will be missing.
title: EventContent
type: object
state_key:
description: A unique key which defines the overwriting semantics for this piece
of room state. This value is often a zero-length string. The presence of this
key makes this event a State Event. The key MUST NOT start with '_'.
type: string
required:
- state_key
title: State Event title: State Event
type: object type: object

View file

@ -26,8 +26,7 @@ properties:
description: The globally unique event identifier. description: The globally unique event identifier.
type: string type: string
sender: sender:
description: Contains the fully-qualified ID of the user who *sent* description: Contains the fully-qualified ID of the user who sent this event.
this event.
type: string type: string
origin_server_ts: origin_server_ts:
description: Timestamp in milliseconds on originating homeserver description: Timestamp in milliseconds on originating homeserver

View file

@ -27,7 +27,7 @@ properties:
state_key: state_key:
description: A unique key which defines the overwriting semantics for this piece description: A unique key which defines the overwriting semantics for this piece
of room state. This value is often a zero-length string. The presence of this of room state. This value is often a zero-length string. The presence of this
key makes this event a State Event. The key MUST NOT start with '_'. key makes this event a State Event.
type: string type: string
required: required:
- state_key - state_key