Open cvalb opened 2 years ago
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.
can you check the @prisis answer? @cvalb
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.