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

SBOM JSON result: add $schema #43

Closed
jkowalleck opened this issue Dec 19, 2021 · 0 comments · Fixed by #42
Closed

SBOM JSON result: add $schema #43

jkowalleck opened this issue Dec 19, 2021 · 0 comments · Fixed by #42

Comments

@jkowalleck
Copy link
Member

jkowalleck commented Dec 19, 2021

requires CycloneDX/specification#106


the current JSON result follows an existing schema, described in https://github.com/CycloneDX/specification/tree/master/schema

feature request: add the used schema as a property $schema of the resulting json.
the value must be the $id of the schema used.

spec schema-id
1.2 http://cyclonedx.org/schema/bom-1.2a.schema.json
1.3 http://cyclonedx.org/schema/bom-1.3.schema.json

example:

{
  "$schema": "http://cyclonedx.org/schema/bom-1.3.schema.json",
  "bomFormat": "CycloneDX",
  "specVersion": "1.3",
  "serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
  "version": 1,
  "components": [
    {
      "type": "library",
      "name": "acme-library",
      "version": "1.0.0"
    }
  ]
}
jkowalleck added a commit that referenced this issue Dec 19, 2021
fixes #43

Signed-off-by: Jan Kowalleck <[email protected]>
jkowalleck added a commit that referenced this issue Dec 20, 2021
fixes #43

Signed-off-by: Jan Kowalleck <[email protected]>
jkowalleck added a commit that referenced this issue Dec 20, 2021
fixes #43

Signed-off-by: Jan Kowalleck <[email protected]>
jkowalleck added a commit that referenced this issue Dec 20, 2021
fixes #43

Signed-off-by: Jan Kowalleck <[email protected]>
jkowalleck added a commit that referenced this issue Dec 20, 2021
fixes #43

Signed-off-by: Jan Kowalleck <[email protected]>
jkowalleck added a commit that referenced this issue Dec 20, 2021
* Added
  * Resulting JSON files hold the correct `$schema`. ([#43] via [#42])

[#43]: #43
[#42]: #42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant