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

conditionalFiles feature is broken when template uses server special parameter #1206

Closed
derberg opened this issue May 6, 2024 · 1 comment · Fixed by #1207
Closed

conditionalFiles feature is broken when template uses server special parameter #1206

derberg opened this issue May 6, 2024 · 1 comment · Fixed by #1207
Labels
bug Something isn't working good first issue Good for newcomers released

Comments

@derberg
Copy link
Member

derberg commented May 6, 2024

error is in https://github.com/asyncapi/generator/blob/master/lib/generator.js#L882

Generator Error: asyncapiDocument.server is not a function

It is because there is a new function that should be used

instead of asyncapiDocument.server(this.templateParams.server)

should be asyncapiDocument.servers().get(this.templateParams.server)

@asyncapi-bot
Copy link
Contributor

🎉 This issue has been resolved in version 2.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers released
Projects
None yet
2 participants