Skip to content

Commit

Permalink
fix: fix the operation messages paths (#876)
Browse files Browse the repository at this point in the history
Co-authored-by: samz <[email protected]>
  • Loading branch information
KhudaDad414 and Amzani authored Dec 5, 2023
1 parent eb04c1a commit 169c107
Show file tree
Hide file tree
Showing 9 changed files with 71 additions and 71 deletions.
4 changes: 2 additions & 2 deletions apps/studio/src/examples/ibmmq.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ operations:
channel:
$ref: '#/channels/songReleased'
messages:
- $ref: '#/components/messages/Song'
- $ref: '#/channels/songReleased/messages/Song'
sendSong:
action: send
channel:
$ref: '#/channels/songReleased'
messages:
- $ref: '#/components/messages/Song'
- $ref: '#/channels/songReleased/messages/Song'
components:
messages:
Song:
Expand Down
4 changes: 2 additions & 2 deletions apps/studio/src/examples/real-world/gitter-streaming.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ operations:
http:
method: POST
messages:
- $ref: '#/components/messages/chatMessage'
- $ref: '#/components/messages/heartbeat'
- $ref: '#/channels/rooms/messages/chatMessage'
- $ref: '#/channels/rooms/messages/heartbeat'
components:
securitySchemes:
httpBearerToken:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,21 +49,21 @@ operations:
channel:
$ref: '#/channels/currencyExchange'
messages:
- $ref: '#/components/messages/pong'
- $ref: '#/channels/currencyExchange/messages/pong'
messages:
- $ref: '#/components/messages/ping'
- $ref: '#/channels/currencyExchange/messages/ping'
sendHeartbeat:
action: send
channel:
$ref: '#/channels/currencyExchange'
messages:
- $ref: '#/components/messages/heartbeat'
- $ref: '#/channels/currencyExchange/messages/heartbeat'
systemStatus:
action: send
channel:
$ref: '#/channels/currencyExchange'
messages:
- $ref: '#/components/messages/systemStatus'
- $ref: '#/channels/currencyExchange/messages/systemStatus'
receiveSubscribeRequest:
action: receive
channel:
Expand All @@ -72,10 +72,10 @@ operations:
channel:
$ref: '#/channels/currencyExchange'
messages:
- $ref: '#/components/messages/subscriptionStatus'
- $ref: '#/components/messages/dummyCurrencyInfo'
- $ref: '#/channels/currencyExchange/messages/subscriptionStatus'
- $ref: '#/channels/currencyExchange/messages/dummyCurrencyInfo'
messages:
- $ref: '#/components/messages/subscribe'
- $ref: '#/channels/currencyExchange/messages/subscribe'
receiveUnsubscribeRequest:
action: receive
channel:
Expand All @@ -84,9 +84,9 @@ operations:
channel:
$ref: '#/channels/currencyExchange'
messages:
- $ref: '#/components/messages/subscriptionStatus'
- $ref: '#/channels/currencyExchange/messages/subscriptionStatus'
messages:
- $ref: '#/components/messages/unsubscribe'
- $ref: '#/channels/currencyExchange/messages/unsubscribe'


components:
Expand Down
94 changes: 47 additions & 47 deletions apps/studio/src/examples/real-world/slack-rtm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,58 +115,58 @@ operations:
channel:
$ref: '#/channels/root'
messages:
- $ref: '#/components/messages/outgoingMessage'
- $ref: '#/channels/root/messages/outgoingMessage'
sendMessages:
action: send
channel:
$ref: '#/channels/root'
messages:
- $ref: '#/components/messages/hello'
- $ref: '#/components/messages/connectionError'
- $ref: '#/components/messages/accountsChanged'
- $ref: '#/components/messages/botAdded'
- $ref: '#/components/messages/botChanged'
- $ref: '#/components/messages/channelArchive'
- $ref: '#/components/messages/channelCreated'
- $ref: '#/components/messages/channelDeleted'
- $ref: '#/components/messages/channelHistoryChanged'
- $ref: '#/components/messages/channelJoined'
- $ref: '#/components/messages/channelLeft'
- $ref: '#/components/messages/channelMarked'
- $ref: '#/components/messages/channelRename'
- $ref: '#/components/messages/channelUnarchive'
- $ref: '#/components/messages/commandsChanged'
- $ref: '#/components/messages/dndUpdated'
- $ref: '#/components/messages/dndUpdatedUser'
- $ref: '#/components/messages/emailDomainChanged'
- $ref: '#/components/messages/emojiRemoved'
- $ref: '#/components/messages/emojiAdded'
- $ref: '#/components/messages/fileChange'
- $ref: '#/components/messages/fileCommentAdded'
- $ref: '#/components/messages/fileCommentDeleted'
- $ref: '#/components/messages/fileCommentEdited'
- $ref: '#/components/messages/fileCreated'
- $ref: '#/components/messages/fileDeleted'
- $ref: '#/components/messages/filePublic'
- $ref: '#/components/messages/fileShared'
- $ref: '#/components/messages/fileUnshared'
- $ref: '#/components/messages/goodbye'
- $ref: '#/components/messages/groupArchive'
- $ref: '#/components/messages/groupClose'
- $ref: '#/components/messages/groupHistoryChanged'
- $ref: '#/components/messages/groupJoined'
- $ref: '#/components/messages/groupLeft'
- $ref: '#/components/messages/groupMarked'
- $ref: '#/components/messages/groupOpen'
- $ref: '#/components/messages/groupRename'
- $ref: '#/components/messages/groupUnarchive'
- $ref: '#/components/messages/imClose'
- $ref: '#/components/messages/imCreated'
- $ref: '#/components/messages/imMarked'
- $ref: '#/components/messages/imOpen'
- $ref: '#/components/messages/manualPresenceChange'
- $ref: '#/components/messages/memberJoinedChannel'
- $ref: '#/components/messages/message'
- $ref: '#/channels/root/messages/hello'
- $ref: '#/channels/root/messages/connectionError'
- $ref: '#/channels/root/messages/accountsChanged'
- $ref: '#/channels/root/messages/botAdded'
- $ref: '#/channels/root/messages/botChanged'
- $ref: '#/channels/root/messages/channelArchive'
- $ref: '#/channels/root/messages/channelCreated'
- $ref: '#/channels/root/messages/channelDeleted'
- $ref: '#/channels/root/messages/channelHistoryChanged'
- $ref: '#/channels/root/messages/channelJoined'
- $ref: '#/channels/root/messages/channelLeft'
- $ref: '#/channels/root/messages/channelMarked'
- $ref: '#/channels/root/messages/channelRename'
- $ref: '#/channels/root/messages/channelUnarchive'
- $ref: '#/channels/root/messages/commandsChanged'
- $ref: '#/channels/root/messages/dndUpdated'
- $ref: '#/channels/root/messages/dndUpdatedUser'
- $ref: '#/channels/root/messages/emailDomainChanged'
- $ref: '#/channels/root/messages/emojiRemoved'
- $ref: '#/channels/root/messages/emojiAdded'
- $ref: '#/channels/root/messages/fileChange'
- $ref: '#/channels/root/messages/fileCommentAdded'
- $ref: '#/channels/root/messages/fileCommentDeleted'
- $ref: '#/channels/root/messages/fileCommentEdited'
- $ref: '#/channels/root/messages/fileCreated'
- $ref: '#/channels/root/messages/fileDeleted'
- $ref: '#/channels/root/messages/filePublic'
- $ref: '#/channels/root/messages/fileShared'
- $ref: '#/channels/root/messages/fileUnshared'
- $ref: '#/channels/root/messages/goodbye'
- $ref: '#/channels/root/messages/groupArchive'
- $ref: '#/channels/root/messages/groupClose'
- $ref: '#/channels/root/messages/groupHistoryChanged'
- $ref: '#/channels/root/messages/groupJoined'
- $ref: '#/channels/root/messages/groupLeft'
- $ref: '#/channels/root/messages/groupMarked'
- $ref: '#/channels/root/messages/groupOpen'
- $ref: '#/channels/root/messages/groupRename'
- $ref: '#/channels/root/messages/groupUnarchive'
- $ref: '#/channels/root/messages/imClose'
- $ref: '#/channels/root/messages/imCreated'
- $ref: '#/channels/root/messages/imMarked'
- $ref: '#/channels/root/messages/imOpen'
- $ref: '#/channels/root/messages/manualPresenceChange'
- $ref: '#/channels/root/messages/memberJoinedChannel'
- $ref: '#/channels/root/messages/message'
components:
securitySchemes:
token:
Expand Down
2 changes: 1 addition & 1 deletion apps/studio/src/examples/simple.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ operations:
channel:
$ref: '#/channels/userSignedup'
messages:
- $ref: '#/components/messages/UserSignedUp'
- $ref: '#/channels/userSignedup/messages/UserSignedUp'
components:
messages:
UserSignedUp:
Expand Down
8 changes: 4 additions & 4 deletions apps/studio/src/examples/streetlights-kafka.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,31 +81,31 @@ operations:
traits:
- $ref: '#/components/operationTraits/kafka'
messages:
- $ref: '#/components/messages/lightMeasured'
- $ref: '#/channels/lightingMeasured/messages/lightMeasured'
turnOn:
action: send
channel:
$ref: '#/channels/lightTurnOn'
traits:
- $ref: '#/components/operationTraits/kafka'
messages:
- $ref: '#/components/messages/turnOnOff'
- $ref: '#/channels/lightTurnOn/messages/turnOn'
turnOff:
action: send
channel:
$ref: '#/channels/lightTurnOff'
traits:
- $ref: '#/components/operationTraits/kafka'
messages:
- $ref: '#/components/messages/turnOnOff'
- $ref: '#/channels/lightTurnOff/messages/turnOff'
dimLight:
action: send
channel:
$ref: '#/channels/lightsDim'
traits:
- $ref: '#/components/operationTraits/kafka'
messages:
- $ref: '#/components/messages/dimLight'
- $ref: '#/channels/lightsDim/messages/dimLight'
components:
messages:
lightMeasured:
Expand Down
8 changes: 4 additions & 4 deletions apps/studio/src/examples/streetlights-mqtt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,31 +107,31 @@ operations:
traits:
- $ref: '#/components/operationTraits/mqtt'
messages:
- $ref: '#/components/messages/lightMeasured'
- $ref: '#/channels/lightingMeasured/messages/lightMeasured'
turnOn:
action: send
channel:
$ref: '#/channels/lightTurnOn'
traits:
- $ref: '#/components/operationTraits/mqtt'
messages:
- $ref: '#/components/messages/turnOnOff'
- $ref: '#/channels/lightTurnOn/messages/turnOn'
turnOff:
action: send
channel:
$ref: '#/channels/lightTurnOff'
traits:
- $ref: '#/components/operationTraits/mqtt'
messages:
- $ref: '#/components/messages/turnOnOff'
- $ref: '#/channels/lightTurnOff/messages/turnOff'
dimLight:
action: send
channel:
$ref: '#/channels/lightsDim'
traits:
- $ref: '#/components/operationTraits/mqtt'
messages:
- $ref: '#/components/messages/dimLight'
- $ref: '#/channels/lightsDim/messages/dimLight'
components:
messages:
lightMeasured:
Expand Down
2 changes: 1 addition & 1 deletion apps/studio/src/examples/websocket-gemini.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ operations:
$ref: '#/channels/marketDataV1'
summary: Receive market updates on a given symbol
messages:
- $ref: '#/components/messages/marketData'
- $ref: '#/channels/marketDataV1/messages/marketData'
components:
messages:
marketData:
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 169c107

Please sign in to comment.