Closed ttnicoleau closed 4 months ago
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.
I finally get the schema by using
channel.messages().get("userSignedUp").payload()["_json"]["schema"]
I know it may not be the best practice, but it is the only way I can do at this moment
Describe the bug.
The parser api can show the Schema object via
channel.messages().get("{messageId}").payload()
but unable to get the schema value from the Schema object where the payload is in $refasyncapi document:
node parser
console.log the above both show the same result of a schema object but not able to access the schema object
Expected behavior
return schema properties inside schema object
Screenshots
channel.messages().get("userSignedUp").payload().schemaFormat()
return the below:Generator Error: asyncapi.allSchemas(...).get(...).schemaFormat is not a function
channel.messages().get("userSignedUp").payload().schemaFormat
/channel.messages().get("userSignedUp").payload()['schemaFormat']
returnundefined
How to Reproduce
🥦 Browser
None
👀 Have you checked for similar open issues?
🏢 Have you read the Contributing Guidelines?
Are you willing to work on this issue ?
None