Skip to content

chore: schema bundler must rewire externals #1005

Closed

Description

@jkowalleck

the schema bundler knows external schemas - schemas that shall not be bundled.

issue

current implementation carries over those schema paths.
which might cause unreachable refs, since the output path might not be the same as the input pat. This is especially important to those model folders, that reference relative tools, and are bundled to a file outside that model folder.

example:

  1. schema/2.0/cyclonedx-2.0.schema.json references relative file model/cyclonedx-license-2.0.schema.json
  2. schema/2.0/model/cyclonedx-license-2.0.schema.json references relative file ../../spdx.schema.json
  3. spdx.schema.json is marked as external - it shall not be bundled
  4. when bundling this schema/2.0/cyclonedx-2.0.schema.json to target file schema/2.0/cyclonedx-2.0-bundled.schema.json, then the ../../spdx.schema.json does not exist from the bundled target location
    it must be rewired to ../spdx.schema.json

goal

have those external files rewired
to the target file location

from above example:

  • ../../spdx.schema.json should be rewired
    from source location schema/2.0/model / ../../spdx.schema.json
    to schema/2.0 - ../spdx.schema.json

optional goal - probably not in thisfix

additionally, each schema has an ID - in JSON schema 2020-12 this id is a also defined as a absolute location.

this means: we might need a switch that, when present, rewires to this absolute location.


caused by #992

Activity

  1. added this to the 2.0 milestone on Aug 5, 2026
  2. self-assigned this
    on Aug 5, 2026
  3. added a commit that references this issue on Aug 5, 2026
    3c2d065
  4. jkowalleck commented on Aug 5, 2026

    @jkowalleck
    MemberAuthor

    done via #1006

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions