-
Notifications
You must be signed in to change notification settings - Fork 34
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
Error: Input is not a correct AsyncAPI document so it cannot be processed. #565
Comments
Hello! Thank you for filing an issue. If this is a bug report, please include relevant logs to help us debug the problem. |
Hi @kafle1, thank you for reporting the issue. |
@flamewow, if i could provide you the reproduction step, i would also have solved the issue, but unfortunately couldnt find where is it coming from, temporarily fixed by commenting out all the |
Same error on NestJS 10 + Fastify Platform Dig some errors here Ok. I comment auth, and lib starts now:
@kafle1 Can you provide your setup code, please? |
const asyncApiOptions = new AsyncApiDocumentBuilder()
.setTitle('Me Portal')
.setDescription('test')
.setVersion('1.0')
.setDefaultContentType('application/json')
.addSecurity('user-password', { type: 'userPassword' })
.addServer('server', {
url: BASE_URL.backend,
protocol: 'socket.io',
protocolVersion: '4',
description: 'Allows you to connect using thewebsocket protocol to our socket.io server',
security: [{ 'user-password': [] }],
variables: {
PORT: {
description: 'Secure connection (TLS) is available through port 443',
default: '443',
},
},
bindings: {},
})
.build();
const asyncapiDocument = AsyncApiModule.createDocument(app, asyncApiOptions);
await AsyncApiModule.setup('/docs/socket', app, asyncapiDocument); |
Describe the bug
Getting this error:
These are my dependencies
Nest version: 10.3.3
"nestjs-asyncapi": "^1.3.0",
Am using pnpm, tried with yarn and npm. still same error
The text was updated successfully, but these errors were encountered: