From 713ba1a292b1875abab696ee34fbe6ccd750651f Mon Sep 17 00:00:00 2001 From: BALOGAL Date: Fri, 10 Sep 2021 00:52:22 +0200 Subject: [PATCH] docs: fix invalid operation references in example snippets --- spec/asyncapi.md | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/spec/asyncapi.md b/spec/asyncapi.md index fb08b1d8..f7756a5c 100644 --- a/spec/asyncapi.md +++ b/spec/asyncapi.md @@ -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. @@ -538,7 +539,9 @@ Field Pattern | Type | Description { "user/signedup": { "subscribe": { - "$ref": "#/components/messages/userSignedUp" + "message": { + "$ref": "#/components/messages/userSignedUp" + } } } } @@ -547,7 +550,8 @@ Field Pattern | Type | Description ```yaml user/signedup: subscribe: - $ref: "#/components/messages/userSignedUp" + message: + $ref: "#/components/messages/userSignedUp" ``` @@ -815,7 +819,9 @@ Field Pattern | Type | Description } }, "subscribe": { - "$ref": "#/components/messages/userSignedUp" + "message": { + "$ref": "#/components/messages/userSignedUp" + } } } } @@ -829,7 +835,8 @@ user/{userId}/signup: schema: type: string subscribe: - $ref: "#/components/messages/userSignedUp" + message: + $ref: "#/components/messages/userSignedUp" ``` @@ -865,7 +872,9 @@ This object can be extended with [Specification Extensions](#specificationExtens } }, "subscribe": { - "$ref": "#/components/messages/userSignedUp" + "message": { + "$ref": "#/components/messages/userSignedUp" + } } } } @@ -880,7 +889,8 @@ user/{userId}/signup: type: string location: $message.payload#/user/id subscribe: - $ref: "#/components/messages/userSignedUp" + message: + $ref: "#/components/messages/userSignedUp" ```