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

refactor: update schema to resolve reference property issue #275

Merged
merged 3 commits into from
Oct 27, 2022

Conversation

mastdev
Copy link
Contributor

@mastdev mastdev commented Oct 18, 2022

Description

  • Update the schema for paramter.json and parameters.json

Related issue(s)
Resolves #165

Copy link

@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.

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.

@jonaslagoni I'm wondering if it makes sense to backport to previous versions 🤔 it is rather refactor work that an actuall fix

Comment on lines 4 to 8
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/2.5.0/parameter.json"
}
]
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/2.5.0/parameter.json"
}
]
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/2.5.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/2.5.0/parameter.json"
}
]

Copy link
Contributor Author

@mastdev mastdev Oct 27, 2022

Choose a reason for hiding this comment

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

Made the changes with the commit #cdee75e. Kindly review.

@derberg
Copy link
Member

derberg commented Oct 25, 2022

@mastdev yo, wanted to check if you saw my review

@mastdev
Copy link
Contributor Author

mastdev commented Oct 26, 2022

Sorry, been inactive for a while. Thanks, @derberg for the review. Will incorporate the changes in the following commit.

@sonarcloud
Copy link

sonarcloud bot commented Oct 27, 2022

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.0% 0.0% Duplication

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.

lgtm

@jonaslagoni since you reported the issue, I want to make sure you are happy with the outcome

Copy link
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.

👍

@derberg
Copy link
Member

derberg commented Oct 27, 2022

/rtm

@asyncapi-bot asyncapi-bot merged commit 5f7edd3 into asyncapi:master Oct 27, 2022
@derberg
Copy link
Member

derberg commented Oct 27, 2022

@mastdev thanks a lot for your contribution

there are few more similar issues https://github.com/asyncapi/spec-json-schemas/issues?q=is%3Aissue+is%3Aopen+label%3AHacktoberfest if you would like to help more

@mastdev
Copy link
Contributor Author

mastdev commented Oct 27, 2022

Thanks, @derberg for the opportunity. I am new to Open Source and it feels great to have one of my initial PRs merged. 😃
Sure, I'll take a look at other issues.

@derberg
Copy link
Member

derberg commented Oct 28, 2022

@mastdev congrats 😄 and thanks for helping us here 🙇🏼

@asyncapi-bot
Copy link
Contributor

🎉 This PR is included in version 4.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.

Parameter defines it's own reference property
4 participants