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: fixes union type with discriminator in go #1967

Merged
merged 3 commits into from
Apr 25, 2024

Conversation

kennethaasan
Copy link
Collaborator

@kennethaasan kennethaasan commented Apr 25, 2024

Description

I got some feedback after #1958 was merged. This fixes some issues with the union type with discriminator in go.

Related Issue

Checklist

  • The code follows the project's coding standards and is properly linted (npm run lint).
  • Tests have been added or updated to cover the changes.
  • Documentation has been updated to reflect the changes.
  • All tests pass successfully locally.(npm run test).

Additional Notes

Copy link

netlify bot commented Apr 25, 2024

Deploy Preview for modelina canceled.

Name Link
🔨 Latest commit b763404
🔍 Latest deploy log https://app.netlify.com/sites/modelina/deploys/662a6597e33d620008e48a39

@kennethaasan kennethaasan marked this pull request as ready for review April 25, 2024 14:16
Copy link

sonarcloud bot commented Apr 25, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
68.8% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

Comment on lines +186 to +189
if op >= CatType(len(CatTypeValues)) {
return nil
}
return CatTypeValues[op]
Copy link
Sponsor Member

Choose a reason for hiding this comment

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

Think the indentation is incorrect, right? 🤔

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sure looks like it, but it's not related to this PR I think. I haven't touched enums

Copy link
Sponsor Member

@jonaslagoni jonaslagoni left a comment

Choose a reason for hiding this comment

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

Good thing indentation is not that important in go 😄

@jonaslagoni jonaslagoni merged commit ecd9618 into asyncapi:next Apr 25, 2024
36 of 37 checks passed
@asyncapi-bot
Copy link
Contributor

🎉 This PR is included in version 4.0.0-next.35 🎉

The release is available on:

Your semantic-release bot 📦🚀

@kennethaasan kennethaasan deleted the go-discriminator-fix branch April 25, 2024 19:11
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.

None yet

3 participants