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

fix: refactor asyncapiDocument.server() to asyncapiDocument.servers().get() to fix conditionalFiles #1207

Merged
merged 2 commits into from
May 6, 2024

Conversation

ibishal
Copy link
Contributor

@ibishal ibishal commented May 6, 2024

removed asyncapiDocument.server(this.templateParams.server) and used asyncapiDocument.servers().get(this.templateParams.server)

Related issue(s)
Fixes #1206

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome to AsyncAPI. Thanks a lot for creating your first pull request. Please check out our contributors guide useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

@derberg derberg changed the title fix: removed asyncapiDocument.server(this.templateParams.server) and used asyncapiDocument.servers().get(this.templateParams.server) fix: refactor asyncapiDocument.server(...) to asyncapiDocument.servers().get(...) to fix conditionalFiles May 6, 2024
@derberg derberg changed the title fix: refactor asyncapiDocument.server(...) to asyncapiDocument.servers().get(...) to fix conditionalFiles fix: refactor asyncapiDocument.server() to asyncapiDocument.servers().get() to fix conditionalFiles May 6, 2024
Copy link
Member

@derberg derberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ibishal please bring back semicolon as linter validation fails

 linting fails here  too ;(
Copy link

sonarcloud bot commented May 6, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@derberg
Copy link
Member

derberg commented May 6, 2024

/rtm

@asyncapi-bot asyncapi-bot merged commit b5ed788 into asyncapi:master May 6, 2024
12 checks passed
@asyncapi-bot
Copy link
Contributor

🎉 This PR is included 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

conditionalFiles feature is broken when template uses server special parameter
3 participants