You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and yeah, we have formatting issue, indentation issue to be precize
correct document that should be in last code sample is:
asyncapi: '3.0.0'info:
title: Create an AsyncAPI document for a Slackbot with WebSocketversion: '1.0.0'description: | The Heart-Counter manages popular messages in a Slack workspace by monitoring message reaction data.servers:
production:
host: wss-primary.slack.compathname: /linkprotocol: wssdescription: Slack's server in Socket Mode for real-time communicationchannels:
root:
address: /messages:
hello:
$ref: '#/components/messages/hello'reaction:
$ref: '#/components/messages/reaction'bindings:
ws:
query:
type: objectdescription: Tokens are produced in the WebSocket URL generated from the [apps.connections.open](https://api.slack.com/methods/apps.connections.open) method from Slack’s APIproperties:
ticket:
type: stringdescription: Temporary token generated when connection is initiatedconst: '13748dac-b866-4ea7-b98e-4fb7895c0a7f'app_id:
type: stringdescription: Unique identifier assigned to the Slack appconst: 'fe684dfa62159c6ac646beeac31c8f4ef415e4f39c626c2dbd1530e3a690892f'operations:
helloListener:
action: receivechannel:
$ref: '#/channels/root'messages:
- $ref: '#/channels/root/messages/hello'reactionListener:
action: receivechannel:
$ref: '#/channels/root'messages:
- $ref: '#/channels/root/messages/reaction'components:
messages:
reaction:
summary: Action triggered when the channel receives a new reaction-added eventpayload:
$ref: '#/components/schemas/reaction'hello:
summary: Action triggered when a successful WebSocket connection is establishedpayload:
$ref: '#/components/schemas/hello'schemas:
hello:
type: objectproperties:
type:
type: stringdescription: A hello string confirming WebSocket connectionconnection_info:
type: objectproperties:
app_id:
type: stringnum_connections:
type: integerdebug_info:
type: objectproperties:
host:
type: stringstarted:
type: stringbuild_number:
type: integerapproximate_connection_time:
type: integerreaction:
type: objectproperties:
user:
type: stringdescription: User ID who performed this eventreaction:
type: stringdescription: The only reaction that we need is a heart emojiitem_user:
type: stringdescription: User ID that created the original item that has been reacted toitem:
type: objectproperties:
channel:
type: stringdescription: Channel information of original messagets:
type: stringdescription: Timestamp information of original messageevent_ts:
type: stringdescription: Reaction timestamp
Discussed in https://github.com/orgs/asyncapi/discussions/1116
Originally posted by asyncapi-bot March 21, 2024
The final code document does not validate in Studio.
note from Lukasz
it is related to https://www.asyncapi.com/docs/tutorials/websocket
and yeah, we have formatting issue, indentation issue to be precize
correct document that should be in last code sample is:
works well in https://studio.asyncapi.com/
provide fix in https://github.com/asyncapi/website/blob/master/pages/docs/tutorials/websocket/index.md
The text was updated successfully, but these errors were encountered: