Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How can I enable specification extensions in asyncapi-react-component?

I’m using the asyncapi react component to render asyncapi documents. (https://github.com/asyncapi/asyncapi-react)

In the asyncapi specification it is allowed to use extensions (x-… values) at certain schema objects. (E.g. the server object: https://www.asyncapi.com/docs/specifications/v2.0.0#serverObject)

Is it possible to show these custom extensions with asyncapi-react component? How can I enable these functionality?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Thanks!

>Solution :

Here is a maintainer of AsyncAPi-React component. For now, rendering extensions is only possible with the next version of the component – you can install it with:

npm i @asyncapi/react-component@next

Only extensions in the Channel, Operation and Message Objects are rendered, the rest is ignored. If you want to have extensions rendered in the right places, please create an issue https://github.com/asyncapi/asyncapi-react/issues 🙂

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading