spec icon indicating copy to clipboard operation
spec copied to clipboard

chore: move root tags and externalDocs to the info object

Open magicmatatjahu opened this issue 3 years ago • 14 comments


title: "move root tags and externalDocs to the info object"

This PR moves tags and externalDocs (describing applications) from root to the Info Object. From an application description point of view, this makes much more sense, because all the metadata is in one place. This is more of a stylistic change, however it introduces a breaking change.

magicmatatjahu avatar May 10 '22 21:05 magicmatatjahu

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
No Duplication information No Duplication information

sonarqubecloud[bot] avatar May 10 '22 21:05 sonarqubecloud[bot]

@dalelane Thanks for your comment! I don't think it causes incompatibility with OpenAPI, because e.g. from the beginning tags in AsyncAPI are used in a different way than in OpenAPI. In OpenAPI you define tags as objects on the root, and in operations you refer to them only by name. In AsyncAPI tags as objects can be used in all places where tags may occur. The only problem may arise if someone wants to refer an Info Object from AsyncAPI in OpenAPI, then yes, this will be a problem, because the validation should inform about the use of additional fields that are not supported (tags and externalDocs).

magicmatatjahu avatar May 16 '22 07:05 magicmatatjahu

@KhudaDad414 Could you check the failing Check Markdown links job? I guess that after merging it https://github.com/asyncapi/spec/commit/f269234668a63653616ff7b3fc9a6b249c73ee5b it should be fixed, but it's not. Please correct me if I'm wrong.

magicmatatjahu avatar Jun 27 '22 11:06 magicmatatjahu

Is anything stopping us from merging this? 🤔

jonaslagoni avatar Jul 18 '22 11:07 jonaslagoni

Is anything stopping us from merging this? 🤔

I guess the approval from the rest of the owners, e.g. @derberg @dalelane

smoya avatar Jul 18 '22 11:07 smoya

@jonaslagoni

Is anything stopping us from merging this? 🤔

yes, failing Check Markdown links job 😄 But perhaps one of the maintainers can merge it with admin privileges.

magicmatatjahu avatar Jul 25 '22 08:07 magicmatatjahu

I'll see if we have more luck with re-running the job quickly first

dalelane avatar Jul 25 '22 08:07 dalelane

I thought that problem was resolved by this PR https://github.com/asyncapi/spec/commit/f269234668a63653616ff7b3fc9a6b249c73ee5b but unfortunately no.

magicmatatjahu avatar Jul 25 '22 08:07 magicmatatjahu

I don't think the problem is actually with the links being broken - the errors are all HTTP-429 - essentially GitHub complaining about too many requests coming too quickly.

dalelane avatar Jul 25 '22 08:07 dalelane

the errors are all HTTP-429

Ideally, the action would accept a header with a valid GH token, so request rate can be higher than actually needed. However there is no such option afaik. We can fix it by follow their recommendations at: https://github.com/gaurav-nelson/github-action-markdown-link-check#too-many-requests

smoya avatar Jul 25 '22 10:07 smoya

/dnm

we need changes in JSON Schema and the Parser

derberg avatar Jul 25 '22 15:07 derberg

@derberg

we need changes in JSON Schema and the Parser

I will create PR for json-schemas. For parser the current "changes" in spec is reflected in the next parserJS version - https://github.com/asyncapi/parser-js/blob/next-major/src/models/v2/info.ts#L64 You can see that it's for 2.X.X, but due to fact that we don't know how 3.0.0 finally will look like the models are only made for version 2.X.X.

magicmatatjahu avatar Jul 26 '22 11:07 magicmatatjahu

Changes in json-schemas https://github.com/asyncapi/spec-json-schemas/pull/244

magicmatatjahu avatar Jul 26 '22 11:07 magicmatatjahu

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
No Duplication information No Duplication information

sonarqubecloud[bot] avatar Jul 26 '22 12:07 sonarqubecloud[bot]

Rebased with current next-major-spec. Could you check again? @derberg @fmvilas @dalelane Thanks!

magicmatatjahu avatar Oct 03 '22 09:10 magicmatatjahu

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
No Duplication information No Duplication information

sonarqubecloud[bot] avatar Oct 20 '22 07:10 sonarqubecloud[bot]

I had to rebase with upstream next-major-spec. Could you check again and merge? Thanks! @derberg @fmvilas @dalelane @smoya @char0n

magicmatatjahu avatar Oct 20 '22 07:10 magicmatatjahu

@magicmatatjahu do you want to merge using /rtm or want us to avoid Squash and Merge?

fmvilas avatar Oct 21 '22 08:10 fmvilas

@fmvilas by /rtm but I will wait for another accepts (at least two more).

magicmatatjahu avatar Oct 21 '22 13:10 magicmatatjahu

/rtm

magicmatatjahu avatar Oct 26 '22 17:10 magicmatatjahu

@derberg /rtm doesn't work because you added dnm label. Could you merge it?

magicmatatjahu avatar Oct 26 '22 17:10 magicmatatjahu

@derberg Thanks!

magicmatatjahu avatar Oct 26 '22 18:10 magicmatatjahu

:tada: This PR is included in version 3.0.0-next-major-spec.4 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

asyncapi-bot avatar Oct 26 '22 18:10 asyncapi-bot