Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistence Parser Methods #884

Closed
AceTheCreator opened this issue Oct 18, 2023 · 2 comments
Closed

Inconsistence Parser Methods #884

AceTheCreator opened this issue Oct 18, 2023 · 2 comments

Comments

@AceTheCreator
Copy link
Member

When using the Parser package, I noticed, for example, in the Parser-api docs, the Channel section includes more methods that are not available in the Parser, E.g. hasSummary().

The following issue also brings about a new observation, why do we have a .channels() method in operation, when we can only have a single channel per operation? Isn't it supposed to be operation.channel()?

@KhudaDad414
Copy link
Member

The following issue also brings about a new observation, why do we have a .channels() method in operation, when we can only have a single channel per operation? Isn't it supposed to be operation.channel()?

I have the same question.

@jonaslagoni
Copy link
Member

Because the parser API is an abstraction on top of the AsyncAPI structure. So it will never be 1-to-1 representation of the spec 🙂

Read more here: https://github.com/asyncapi/parser-api

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants