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: enum generation should handle union types #349

Merged
merged 12 commits into from
Sep 3, 2021

Conversation

jonaslagoni
Copy link
Member

@jonaslagoni jonaslagoni commented Sep 3, 2021

Description
This PR addresses some of the issues revolving around enum generation.

C# need its enum generation fixed beforehand: #336

Related issue(s)
Fixes #244
Fixes #242

@coveralls
Copy link

coveralls commented Sep 3, 2021

Pull Request Test Coverage Report for Build 1198030397

  • 24 of 25 (96.0%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.04%) to 93.376%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/generators/typescript/renderers/EnumRenderer.ts 18 19 94.74%
Totals Coverage Status
Change from base Build 1197912980: -0.04%
Covered Lines: 1864
Relevant Lines: 1903

💛 - Coveralls

@sonarqubecloud
Copy link

sonarqubecloud bot commented Sep 3, 2021

Please retry analysis of this Pull-Request directly on SonarCloud.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Sep 3, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.1% 0.1% Duplication

@jonaslagoni jonaslagoni merged commit 5392cb8 into asyncapi:master Sep 3, 2021
@jonaslagoni jonaslagoni deleted the feature/fix_enum_generation branch September 3, 2021 12:49
@asyncapi-bot
Copy link
Contributor

🎉 This PR is included in version 0.28.2 🎉

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Object enums are not rendered correctly Number enums are not rendered correctly
4 participants