Skip to content

Commit

Permalink
Merge pull request #2647 from jplatte/event-titles
Browse files Browse the repository at this point in the history
Make event's title fields UpperCamelCase and distinguish /sync ones
  • Loading branch information
turt2live committed Jun 19, 2020
2 parents 11a808a + 763e565 commit 465ed38
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion api/server-server/definitions/invite_event.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
type: object
title: Invite Event
title: InviteEvent
description: |-
An invite event. Note that events have a different format depending on the
room version - check the `room version specification`_ for precise event formats.
Expand Down
1 change: 1 addition & 0 deletions changelogs/client_server/newsfragments/2647.clarification
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Improve consistency and clarity of event schema ``title``s.
2 changes: 1 addition & 1 deletion event-schemas/schema/core-event-schema/room_event.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ properties:
type: string
required:
- room_id
title: Room Event
title: RoomEvent
type: object
2 changes: 1 addition & 1 deletion event-schemas/schema/core-event-schema/state_event.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ allOf:
- $ref: room_event.yaml
- $ref: sync_state_event.yaml
description: State Events have the following fields.
title: State Event
title: StateEvent
type: object
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ required:
- event_id
- sender
- origin_server_ts
title: Room Event
title: SyncRoomEvent
type: object
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ properties:
type: string
required:
- state_key
title: State Event
title: SyncStateEvent
type: object

0 comments on commit 465ed38

Please sign in to comment.