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
I have an asyncapi v3 doc, with two messages, and a distinct channel and a distinct operation per those messages.
i'm doing parsed.document.messages().get('msg1')?.operations().get('msg2')?.id() and msg2 shows up in msg1 operations collection.
Steps to reproduce the issue
Use the given asyncapi schema with the typescript snippet bellow.
Run as ts-node -T test.ts
import{Parser,fromFile}from"@asyncapi/parser";importpathfrom"path";constparser=newParser();fromFile(parser,path.join(__dirname,'test1.yml')).parse().then(parsed=>{if(parsed.document===undefined){thrownewError(`Unable to parse the given AsyncAPI document`);}console.log(`why does msg2 exist on msg1 operation? ${parsed.document.messages().get('msg1')?.operations().get('msg2')?.id()}`);}).catch((error: any)=>{thrownewError(error);});
Expected behavior
I would expect the chained method calls to filter the data based on the chain, meaning only msg1 operation should be visible when retrieved from .messages().get('msg1').operations() and msg2 should not be in the list.
The text was updated successfully, but these errors were encountered:
Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request. Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.
This issue has been automatically marked as stale because it has not had recent activity 😴
It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation.
There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.
Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here.
Describe the bug
I have an asyncapi v3 doc, with two messages, and a distinct channel and a distinct operation per those messages.
i'm doing
parsed.document.messages().get('msg1')?.operations().get('msg2')?.id()
and msg2 shows up in msg1 operations collection.Steps to reproduce the issue
Use the given asyncapi schema with the typescript snippet bellow.
Run as
ts-node -T test.ts
Expected behavior
I would expect the chained method calls to filter the data based on the chain, meaning only msg1 operation should be visible when retrieved from
.messages().get('msg1').operations()
andmsg2
should not be in the list.The text was updated successfully, but these errors were encountered: