Clarify exactly what StrippedState is

Fixes https://github.com/matrix-org/matrix-doc/issues/2066

The expectation everywhere is that the `sender` is required. `/initialSync` references StrippedState through a `m.room.member` event reference, and does not need editing.
This commit is contained in:
Travis Ralston 2019-06-02 17:41:39 -06:00
parent dda7afa845
commit 7a07a6b358
9 changed files with 71 additions and 96 deletions

View file

@ -82,25 +82,7 @@ paths:
identify the room. The recommended events to include are the join rules,
canonical alias, avatar, and name of the room.
items:
type: object
title: Invite Room State Event
properties:
type:
type: string
description: The type of event.
example: "m.room.join_rules"
state_key:
type: string
description: The state key for the event. May be an empty string.
example: ""
content:
type: object
description: The content for the event.
sender:
type: string
description: The sender of the event.
example: "@someone:matrix.org"
required: ['type', 'state_key', 'content', 'sender']
$ref: "../client-server/definitions/event-schemas/schema/stripped_state.yaml"
example: [
{
"type": "m.room.join_rules",