Repository navigation
2.0 dev bundler externals rewrite - #1006
Merged
Merged
Conversation
Signed-off-by: Jan Kowalleck <[email protected]>
Signed-off-by: Jan Kowalleck <[email protected]>
Signed-off-by: Jan Kowalleck <[email protected]>
Signed-off-by: Jan Kowalleck <[email protected]>
Signed-off-by: Jan Kowalleck <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the 2.0 schema bundling tool so external (exception-listed) schema $ref paths are rewired relative to the bundled output location, addressing previously unreachable references (notably from model/ schemas) and fixes a couple of incorrect relative $refs in 2.0 model schemas.
Changes:
- Rewrites exception-listed external
$refpaths during bundling to be relative to the root schema output directory. - Refactors schema loading/indexing to key schemas by file path and updates validation/rewrite flow accordingly.
- Fixes unreachable
$refpaths in 2.0 model schemas (spdx.schema.json,cryptography-defs.schema.json).
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| tools/src/main/js/bundler/bundle-schemas.js | Rewires exception-listed external $refs relative to bundled target and adjusts schema indexing/validation. |
| schema/2.0/model/cyclonedx-license-2.0.schema.json | Fixes SPDX $ref path so it resolves correctly from the model directory. |
| schema/2.0/model/cyclonedx-cryptography-2.0.schema.json | Fixes cryptography-defs $ref paths so they resolve correctly from the model directory. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: Jan Kowalleck <[email protected]>
jkowalleck
commented
Aug 5, 2026
| if (refExceptionSet && refExceptionSet.has(basename.toLowerCase())) { | ||
| newObj[key] = value; | ||
| } else { | ||
| const filenameRewired = path.relative( |
Member
Author
There was a problem hiding this comment.
this is the actual fix
This was referenced Aug 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
and yes, the bundler already ran, and the result is the same as before :-)
even though the schema module refs were actually fixed