Repository navigation
fix: case when message is oneOf for one element - #554
Conversation
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
LGTM
anything from you @magicmatatjahu ? as I saw you commenting on the issue
magicmatatjahu
left a comment
There was a problem hiding this comment.
actually, that logic bites me a little bit, because if someone passes message(2), it should return null, but because of the lines
if (!this._json.message.oneOf) return new Message(this._json.message);I accept this solution because this function has bad logic from the beginning anyway.
|
Kudos, SonarCloud Quality Gate passed!
|
|
/rtm |
|
🎉 This PR is included in version 1.15.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 2.0.0-next-major.18 🎉 The release is available on: Your semantic-release bot 📦🚀 |








Description
If message object is
Then parser will return
Related issue(s)
Fixes #475