-
-
Notifications
You must be signed in to change notification settings - Fork 235
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
Generator with parameter sidebarOrganization=byTags throws error: Found non-callable @@iterator #1059
Comments
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. |
Hey there, please provide examples and errors formatted with markdown code. Best, please provide full AsyncAPI documents examples for testing so we can easily replicate |
@derberg It works on html/template@0.28.4 version, but not on the 1.0.0 version. You can add tags to the streetlights project and you will get the same error if you execute: Streetlights project with added tags:
|
Same issue here |
Taking a look at this now. |
I cannot reproduce this issue anymore, pretty sure it's one of the recent changes to the underlying parser that has been fixed. @michaelyali @lenartgolob are you folks still experiencing it? |
no further feedback - assuming fixed |
This was fixed as part of asyncapi/github-action-for-cli#368 (comment) |
Describe the bug
I added tags to all my channels/operations and when I try to generate the file with command:
asyncapi generate fromTemplate asyncapi.yaml @asyncapi/html-template -p sidebarOrganization=byTags --force-write
I get this error:
[BABEL] Note: The code generator has deoptimised the styling of C:\Users\GolobL\AppData\Roaming\npm\node_modules@asyncapi\cli\node_modules@asyncapi\generator\node_modules@asyncapi\html-template\template\js\asyncapi-ui.min.js as it exceeds the max of 500KB.
Generation in progress. Keep calm and wait a bit... done
Generator Error: Found non-callable @@iterator
If I try to generate documentation without the parameter or with other parameters it works fine.
Replicate
I call my tags like this:
"{operatorId}..session.started":
description: desc.
parameters:
operatorId:
$ref: './common/parameters.yaml#/operatorId'
publish:
operationId: "{operatorId}..session.started"
traits:
- $ref: '#/components/operationTraits/kafka'
message:
$ref: './common/messages.yaml#/SessionStarted'
tags:
- name: session
I also tried moving the tags to messages but I get the same error
Expected behavior
A generated html file with side bar organization based on tags
The text was updated successfully, but these errors were encountered: