Skip to content

Commit

Permalink
feat: show an error when no operation is defined (#568)
Browse files Browse the repository at this point in the history
  • Loading branch information
KhudaDad414 authored Nov 20, 2023
1 parent 8a82554 commit 6512162
Show file tree
Hide file tree
Showing 6 changed files with 7,270 additions and 14,927 deletions.
61 changes: 40 additions & 21 deletions examples/dummy/asyncapi.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,32 @@
asyncapi: 2.0.0
asyncapi: 3.0.0
info:
title: Account Service
version: 1.0.0
description: This service is in charge of processing user signups
servers:
mosquitto:
url: mqtts://test.mosquitto.org
host: test.mosquitto.org
protocol: mqtts
security:
- X509Certificate: []
- $ref: '#/components/securitySchemes/X509Certificate'
bindings:
mqtt:
clientId: guest
cleanSession: true
keepAlive: 60
bindingVersion: 0.1.0
bindingVersion: 0.2.0
websockets:
url: ws://localhost:3005/ws
host: 'localhost:3005'
pathname: /ws
protocol: ws
channels:
user/signedup:
address: user/signedup
messages:
onUserSignedUp.message:
$ref: '#/components/messages/UserSignedUp'
subscribe.message:
$ref: '#/components/messages/UserSignedUp'
bindings:
ws:
bindingVersion: 0.1.0
Expand All @@ -35,24 +42,36 @@ channels:
properties:
my-custom-header:
type: string
const: 'custom value'

publish:
operationId: onUserSignedUp
message:
$ref: '#/components/messages/UserSignedUp'
bindings:
mqtt:
qos: 2
retain: true
bindingVersion: 0.1.0
subscribe:
message:
$ref: '#/components/messages/UserSignedUp'
const: custom value
server/announce:
subscribe:
message:
address: server/announce
messages:
subscribe.message:
$ref: '#/components/messages/ServerAnnounce'
operations:
onUserSignedUp:
action: receive
channel:
$ref: '#/channels/user~1signedup'
bindings:
mqtt:
qos: 2
retain: true
bindingVersion: 0.2.0
messages:
- $ref: '#/components/messages/UserSignedUp'
user/signedup.subscribe:
action: send
channel:
$ref: '#/channels/user~1signedup'
messages:
- $ref: '#/components/messages/UserSignedUp'
server/announce.subscribe:
action: send
channel:
$ref: '#/channels/server~1announce'
messages:
- $ref: '#/components/messages/ServerAnnounce'
components:
securitySchemes:
userAndPassword:
Expand Down
Loading

0 comments on commit 6512162

Please sign in to comment.