-
Notifications
You must be signed in to change notification settings - Fork 228
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
Cannot generate AsyncAPI 2.0.0 documentation #330
Labels
pinned
Issues that will not be automatically closed
Comments
Hey :) /**
* @asyncapi
* channels:
* /user/signedup:
* description: This channel is used to exchange messages about users signing up
* subscribe:
* summary: A user signed up.
* message:
* description: A longer description of the message
* payload:
* type: object
* properties:
* user:
* type: object
* required:
* - name
* properties:
* name:
* type: string
* age:
* type: integer
* format: int32
* minimum: 0
*/ you had 2 small mistakes in your example |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello!
I'm testing various packages for Async Api documentation and this seems to be the most suited for my purposes, because it works with both OpenApi and AsyncApi patterns.
I kept getting this error trying to generate a document from a AsyncApi 2.0.0 yaml file, while the same function is working fine with my OpenApi 3.0.3 yaml file:
Here is the way I'm using the package:
The yaml file is working fine on editors like studio.asyncapi.com and I'm able to serve it with @asyncapi/generator:
So I tried to generating from a .js file, which is most likely the way I'm going to use it, but I get a blank Async API documentation.
This is the .js file I'm trying to generate from:
The documentation generated:
Thanks.
The text was updated successfully, but these errors were encountered: