dedoussis/asynction

/docs does not work with asyncapi 2.2.0

Closed this issue · 1 comments

Hi @dedoussis

Screen Shot 2021-10-25 at 12 06 36 PM
When running the example on the current master branch, the error Error: Version 2.2.0 is not supported. is presented.

According to this issue Version 2.2.0 should be support on the next branch of asyncapi-react.
It appears you are using version 1.0.0-next.18.
There is now a 1.0.0-next.21 available, perhaps a version bump is needed?

Thanks a lot for spotting the issue as well as fixing it @alex-zywicki

Have merged your PR and released version 0.4.3.

Unfortunately there is no easy way to catch this in tests. There is already an integration test which asserts that the docs endpoint returns the correct HTML content, however this error is only thrown as part of the JavaScript execution on the client-side. Hence, the only way to properly test this is to execute the returned JavaScript, which feels like an overkill. For now, will have to keep track of this manually, and update the URLs whenever a new version of the specification is released.