-
-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Studio AsyncAPI: Cannot read properties of null - Issue with property named "message" #416
Comments
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. |
@NickManit hey there, sorry for delay in response. The core of all the problems you see is AsyncAPI Schema that is superset of JSON Schema doesn't define Are you trying to reuse your OpenAPI Schemas in AsyncAPI documents? which is completely valid case that we should further investigate. If you do not need OpenAPI Schema, then I suggest replacing |
This issue has been automatically marked as stale because it has not had recent activity 😴 It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation. There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model. Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here. Thank you for your patience ❤️ |
no response, I guess my previous comment solved the bug |
Describe the bug
I am currently getting the following error from studio.asyncapi.com when I use asyncapi version >=2.4.0:
Error thrown during AsyncAPI document validation. Name: TypeError, message: Cannot read properties of null (reading 'oneOf'), stack: TypeError: Cannot read properties of null (reading 'oneOf') at $.channels.*.[publish,subscribe][?(@Property === "message" && @.oneOf == void 0)] (eval at value (https://studio.asyncapi.com/static/js/main.13c62293.js:2:4582376), :561:71) at eval (eval at value (https://studio.asyncapi.com/static/js/main.13c62293.js:2:4582376), :634:98) at o (https://studio.asyncapi.com/static/js/main.13c62293.js:2:4607027) at a (https://studio.asyncapi.com/static/js/main.13c62293.js:2:4607290) at o (https://studio.asyncapi.com/static/js/main.13c62293.js:2:4607056) at a (https://studio.asyncapi.com/static/js/main.13c62293.js:2:4607290) at o (https://studio.asyncapi.com/static/js/main.13c62293.js:2:4607056) at a (https://studio.asyncapi.com/static/js/main.13c62293.js:2:4607227) at o (https://studio.asyncapi.com/static/js/main.13c62293.js:2:4607056) at a (https://studio.asyncapi.com/static/js/main.13c62293.js:2:4607290)
How to Reproduce
Simply change the version of asyncapi from 2.3.0 to 2.4.0 or above, and the error I mentioned will be thrown:
Expected behavior
As far as I understood, this error is related with two things:
However, I do not think this is the normal behaviour. I guess the expected behaviour is to accept this structure and not throw an error. Could someone please clarify?
The text was updated successfully, but these errors were encountered: