Skip to content

Commit 03999c1

Browse files
committed
Fix Gitter streaming example
1 parent d339448 commit 03999c1

File tree

1 file changed

+91
-91
lines changed

1 file changed

+91
-91
lines changed

examples/next/gitter-streaming.yml

Lines changed: 91 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -47,108 +47,108 @@ components:
4747
scheme: bearer
4848
messages:
4949
chatMessage:
50+
schemaFormat: 'application/schema+yaml;version=draft-07'
5051
summary: >-
5152
A message represents an individual chat message sent to a room.
5253
They are a sub-resource of a room.
5354
payload:
54-
'application/schema+json;version=draft-07':
55-
type: object
56-
properties:
57-
id:
58-
type: string
59-
description: ID of the message.
60-
text:
61-
type: string
62-
description: Original message in plain-text/markdown.
63-
html:
64-
type: string
65-
description: HTML formatted message.
66-
sent:
55+
type: object
56+
properties:
57+
id:
58+
type: string
59+
description: ID of the message.
60+
text:
61+
type: string
62+
description: Original message in plain-text/markdown.
63+
html:
64+
type: string
65+
description: HTML formatted message.
66+
sent:
67+
type: string
68+
format: date-time
69+
description: ISO formatted date of the message.
70+
fromUser:
71+
type: object
72+
description: User that sent the message.
73+
properties:
74+
id:
75+
type: string
76+
description: Gitter User ID.
77+
username:
78+
type: string
79+
description: Gitter/GitHub username.
80+
displayName:
81+
type: string
82+
description: Gitter/GitHub user real name.
83+
url:
84+
type: string
85+
description: Path to the user on Gitter.
86+
avatarUrl:
87+
type: string
88+
format: uri
89+
description: User avatar URI.
90+
avatarUrlSmall:
91+
type: string
92+
format: uri
93+
description: User avatar URI (small).
94+
avatarUrlMedium:
95+
type: string
96+
format: uri
97+
description: User avatar URI (medium).
98+
v:
99+
type: number
100+
description: Version.
101+
gv:
102+
type: string
103+
description: Stands for "Gravatar version" and is used for cache busting.
104+
unread:
105+
type: boolean
106+
description: Boolean that indicates if the current user has read the message.
107+
readBy:
108+
type: number
109+
description: Number of users that have read the message.
110+
urls:
111+
type: array
112+
description: List of URLs present in the message.
113+
items:
67114
type: string
68-
format: date-time
69-
description: ISO formatted date of the message.
70-
fromUser:
115+
format: uri
116+
mentions:
117+
type: array
118+
description: List of @Mentions in the message.
119+
items:
71120
type: object
72-
description: User that sent the message.
73121
properties:
74-
id:
75-
type: string
76-
description: Gitter User ID.
77-
username:
122+
screenName:
78123
type: string
79-
description: Gitter/GitHub username.
80-
displayName:
124+
userId:
81125
type: string
82-
description: Gitter/GitHub user real name.
83-
url:
84-
type: string
85-
description: Path to the user on Gitter.
86-
avatarUrl:
87-
type: string
88-
format: uri
89-
description: User avatar URI.
90-
avatarUrlSmall:
91-
type: string
92-
format: uri
93-
description: User avatar URI (small).
94-
avatarUrlMedium:
95-
type: string
96-
format: uri
97-
description: User avatar URI (medium).
98-
v:
99-
type: number
100-
description: Version.
101-
gv:
102-
type: string
103-
description: Stands for "Gravatar version" and is used for cache busting.
104-
unread:
105-
type: boolean
106-
description: Boolean that indicates if the current user has read the message.
107-
readBy:
108-
type: number
109-
description: Number of users that have read the message.
110-
urls:
111-
type: array
112-
description: List of URLs present in the message.
113-
items:
114-
type: string
115-
format: uri
116-
mentions:
117-
type: array
118-
description: List of @Mentions in the message.
119-
items:
120-
type: object
121-
properties:
122-
screenName:
126+
userIds:
127+
type: array
128+
items:
123129
type: string
124-
userId:
125-
type: string
126-
userIds:
127-
type: array
128-
items:
129-
type: string
130-
issues:
131-
type: array
132-
description: 'List of #Issues referenced in the message.'
133-
items:
134-
type: object
135-
properties:
136-
number:
137-
type: string
138-
meta:
139-
type: array
140-
description: Metadata. This is currently not used for anything.
141-
items: {}
142-
v:
143-
type: number
144-
description: Version.
145-
gv:
146-
type: string
147-
description: Stands for "Gravatar version" and is used for cache busting.
130+
issues:
131+
type: array
132+
description: 'List of #Issues referenced in the message.'
133+
items:
134+
type: object
135+
properties:
136+
number:
137+
type: string
138+
meta:
139+
type: array
140+
description: Metadata. This is currently not used for anything.
141+
items: {}
142+
v:
143+
type: number
144+
description: Version.
145+
gv:
146+
type: string
147+
description: Stands for "Gravatar version" and is used for cache busting.
148148

149149
heartbeat:
150+
schemaFormat: 'application/schema+yaml;version=draft-07'
150151
summary: Its purpose is to keep the connection alive.
151152
payload:
152-
'application/schema+json;version=draft-07':
153-
type: string
154-
enum: ["\r\n"]
153+
type: string
154+
enum: ["\r\n"]

0 commit comments

Comments
 (0)