Skip to content
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

Does not support version 3.0.0 #61

Open
nanotower opened this issue Dec 20, 2023 · 5 comments
Open

Does not support version 3.0.0 #61

nanotower opened this issue Dec 20, 2023 · 5 comments

Comments

@nanotower
Copy link

As per the README, it's supported, but when passing a valid yaml through the fromSource method, you would get this error in return:
Version 3.0.0 is not supported. Error Details: Please use latest version of the specification.

@WaleedAshraf
Copy link
Owner

@nanotower What version of the asyncapi-validator are you using? and can you share complete error log?

@WaleedAshraf
Copy link
Owner

@smoya
Copy link

smoya commented Dec 20, 2023

This repository uses an old version (1.15.0) of the Parser which doesn't support v3.

Please update to latest.

@nanotower
Copy link
Author

nanotower commented Dec 20, 2023

I'm using version 4.0.0. The trace points to the parser, indeed.

AsyncAPIValidationError: Version 3.0.0 is not supported. Error Details: Please use latest version of the specification.
at Parser.parse (/Users/fer/infinitas/azure-bus-validator/node_modules/asyncapi-validator/src/Parser.js:27:13)
at ValidatorFactory.fromSource (/Users/fer/infinitas/azure-bus-validator/node_modules/asyncapi-validator/src/ValidatorFactory.js:13:29)
at createInstance (/Users/fer/infinitas/azure-bus-validator/index.js:30:15)
at Object.init (/Users/fer/infinitas/azure-bus-validator/index.js:44:16)
at Object. (/Users/fer/infinitas/azure-bus-validator/test/unit.test.js:121:3) {
key: undefined,
errors: [
{
jsonPointer: '/asyncapi',
startLine: 1,
startColumn: 1,
startOffset: 0,
endLine: 1,
endColumn: 16,
endOffset: 15
}
]
}

@WaleedAshraf
Copy link
Owner

Thanks @smoya

@nanotower v3.0.0 and above of AsyncAPI specs is not supported. The readme is bit misleading,

Since v3.0.0, support for older versions....

This meant asyncapi-validator@3.0.0

As this is a major change, it can take some time. I will try to look into this on coming weekend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants