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

fixed JSON schema id #84

Closed

Conversation

jkowalleck
Copy link
Member

@jkowalleck jkowalleck commented Jul 8, 2021

is part to #83

  • removed duplicate $id definitions
  • removed all $id markers that were just json-pointers prefixed with # (self-shadowing)

@jkowalleck
Copy link
Member Author

hm, CI is breaking.
any idea why?

@stevespringett
Copy link
Member

The build was relying on an old SNAPSHOT of CycloneDX Core Java which was used at the time of the release of the v1.3 spec. The build needed to be updated to a released version of Core Java, which I have just done. Future builds should pass.

@jkowalleck jkowalleck force-pushed the bugfix/83_duplicate_ids_in_JSON branch from d1851e8 to cdf2d29 Compare July 10, 2021 08:23
@jkowalleck
Copy link
Member Author

thanks, @stevespringett .
rebased onto latest master; build passed as expected.

@jkowalleck
Copy link
Member Author

@stevespringett could you revisit this PR?

@stevespringett
Copy link
Member

@jkowalleck We're currently working on the v1.4-dev branch and already have 1 PR submitted. I'll likely have another one this weekend. But I'd like to include all of these fixes in the v1.4-dev branch when everything is merged into that branch prior to merging to master.

@jkowalleck
Copy link
Member Author

@stevespringett feel free to change this PR's target branch to whatever branch you prefer. :)

@jkowalleck jkowalleck marked this pull request as draft December 22, 2021 09:40
@jkowalleck
Copy link
Member Author

jkowalleck commented Dec 22, 2021

done with a review.
this one is ready, @stevespringett

feel free to change the merge target from master to v1.4-dev if needed

@jkowalleck jkowalleck changed the title fixed duplicate JSON schema id fixed JSON schema id Dec 22, 2021
@jkowalleck jkowalleck force-pushed the bugfix/83_duplicate_ids_in_JSON branch from cdf2d29 to 269fbe2 Compare December 22, 2021 10:08
@jkowalleck jkowalleck marked this pull request as ready for review December 22, 2021 10:08
@@ -834,7 +820,6 @@
]
},
"hashes": {
"$id": "#/properties/hashes",
Copy link
Member Author

Choose a reason for hiding this comment

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

was a duplicate.

@@ -809,7 +795,6 @@
]
},
"hashes": {
"$id": "#/properties/hashes",
Copy link
Member Author

Choose a reason for hiding this comment

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

was a duplicate

part of CycloneDX#83

Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
part of CycloneDX#83

Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
@jkowalleck jkowalleck force-pushed the bugfix/83_duplicate_ids_in_JSON branch from 269fbe2 to d22e948 Compare December 28, 2021 13:26
@stevespringett
Copy link
Member

Fixed in 1.4. Core Working Group has not made a decision on whether to backport.

@jkowalleck
Copy link
Member Author

related to #123

@@ -27,14 +26,12 @@
]
},
"specVersion": {
"$id": "#/properties/specVersion",
Copy link
Member Author

Choose a reason for hiding this comment

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

$id is the same value the JSON pointer has. so the $id is shadowing the exact same element and can therefore be removed.

@stevespringett
Copy link
Member

Closing in favor of #125

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.

3 participants