asyncapi / asyncapi-react

React component for rendering documentation from your specification in real-time in the browser. It also provides a WebComponent and bundle for Angular and Vue
https://asyncapi.github.io/asyncapi-react/
Apache License 2.0
180 stars 111 forks source link

Add an informative stub in case the AsyncAPI document is invalid #1048

Open KrySeyt opened 1 week ago

KrySeyt commented 1 week ago

Description

Hi! I use this component via CDN to generate a schema from json/yaml. Currently, if the AsyncAPI document is invalid, just a blank page is displayed. It would be nice if this component displayed some error information, as in AsyncAPI Studio

CDN version - https://unpkg.com/@asyncapi/react-component@1.0.0-next.54/browser/standalone/index.js

Reasons

It will be easier to debug the case when nothing is displayed.

github-actions[bot] commented 1 week 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.