From e5e249dce1a1cc6fc243da821116bf974c59906e Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Fri, 3 Nov 2017 17:17:59 +0000 Subject: [PATCH] Remove redundant 'Required' annotations from event fields --- event-schemas/schema/core-event-schema/event.yaml | 3 ++- event-schemas/schema/core-event-schema/room_event.yaml | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/event-schemas/schema/core-event-schema/event.yaml b/event-schemas/schema/core-event-schema/event.yaml index ebf67aa3..7a060283 100644 --- a/event-schemas/schema/core-event-schema/event.yaml +++ b/event-schemas/schema/core-event-schema/event.yaml @@ -3,11 +3,12 @@ properties: content: description: The fields in this object will vary depending on the type of event. When interacting with the REST API, this is the HTTP body. - title: EventContent type: object type: description: The type of event. This SHOULD be namespaced similar to Java package naming conventions e.g. 'com.example.subdomain.event.type' type: string +required: + - type title: Event type: object diff --git a/event-schemas/schema/core-event-schema/room_event.yaml b/event-schemas/schema/core-event-schema/room_event.yaml index de72f570..a8a23f54 100644 --- a/event-schemas/schema/core-event-schema/room_event.yaml +++ b/event-schemas/schema/core-event-schema/room_event.yaml @@ -4,17 +4,17 @@ description: In addition to the Event fields, Room Events have the following add fields. properties: event_id: - description: Required. The globally unique event identifier. + description: The globally unique event identifier. type: string room_id: - description: Required. The ID of the room associated with this event. + description: The ID of the room associated with this event. type: string sender: - description: Required. Contains the fully-qualified ID of the user who *sent* + description: Contains the fully-qualified ID of the user who *sent* this event. type: string origin_server_ts: - description: Required. Timestamp in milliseconds on originating homeserver + description: Timestamp in milliseconds on originating homeserver when this event was sent. type: number unsigned: