Skip to content

Commit

Permalink
docs: fix invalid operation references in example snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
BALOGAL committed Sep 16, 2021
1 parent f9a191f commit 09ee46f
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions spec/asyncapi.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ The file(s) MUST describe the operations an [application](#definitionsApplicatio
```yaml
user/signedup:
subscribe:
$ref: "#/components/messages/userSignUp"
message:
$ref: "#/components/messages/userSignUp"
```
It means that the [application](#definitionsApplication) allows [consumers](#definitionsConsumer) to subscribe to the `user/signedup` [channel](#definitionsChannel) to receive userSignUp [messages](#definitionsMessage) produced by the application.
Expand Down Expand Up @@ -538,7 +539,9 @@ Field Pattern | Type | Description
{
"user/signedup": {
"subscribe": {
"$ref": "#/components/messages/userSignedUp"
"message": {
"$ref": "#/components/messages/userSignUp"
}
}
}
}
Expand All @@ -547,7 +550,8 @@ Field Pattern | Type | Description
```yaml
user/signedup:
subscribe:
$ref: "#/components/messages/userSignedUp"
message:
$ref: "#/components/messages/userSignUp"
```


Expand Down Expand Up @@ -815,7 +819,9 @@ Field Pattern | Type | Description
}
},
"subscribe": {
"$ref": "#/components/messages/userSignedUp"
"message": {
"$ref": "#/components/messages/userSignUp"
}
}
}
}
Expand All @@ -829,7 +835,8 @@ user/{userId}/signup:
schema:
type: string
subscribe:
$ref: "#/components/messages/userSignedUp"
message:
$ref: "#/components/messages/userSignUp"
```


Expand Down Expand Up @@ -865,7 +872,9 @@ This object can be extended with [Specification Extensions](#specificationExtens
}
},
"subscribe": {
"$ref": "#/components/messages/userSignedUp"
"message": {
"$ref": "#/components/messages/userSignUp"
}
}
}
}
Expand All @@ -880,7 +889,8 @@ user/{userId}/signup:
type: string
location: $message.payload#/user/id
subscribe:
$ref: "#/components/messages/userSignedUp"
message:
$ref: "#/components/messages/userSignUp"
```


Expand Down

0 comments on commit 09ee46f

Please sign in to comment.