Skip to content

Commit

Permalink
feat: add basic support for CycloneDX v1.6 (#422)
Browse files Browse the repository at this point in the history

Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
  • Loading branch information
jkowalleck committed Apr 10, 2024
1 parent fdf7934 commit c426933
Show file tree
Hide file tree
Showing 721 changed files with 30,408 additions and 16 deletions.
17 changes: 17 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,27 @@ All notable changes to this project will be documented in this file.

<!-- add unreleased items here -->

Added _basic_ support for [_CycloneDX_ Specification-1.6](https://github.com/CycloneDX/specification/releases/tag/1.6).

* Changed
* Method `\CycloneDX\Core\Spec\SpecFactory::makeForVersion()` supports _CycloneDX_ Specification-1.6 now ([#421] via [#422])
* Classes `\CycloneDX\Core\Serialization\{DOM,JSON}\Normalizers\*` support _CycloneDX_ Specification-1.6 now ([#421] via [#422])
* Classes `\CycloneDX\Core\Validation\Validators\*` support _CycloneDX_ Specification-1.6 now ([#421] via [#422])
* Added
* Namespace `\CycloneDX\Core\Enums`
* Enum `ComponentType` got new cases ([#421] via [#422])
New: `CryptographicAsset`
* Enum `ExternalReferenceType` got new cases ([#421] via [#422])
New: `SourceDistribution`, `ElectronicSignature`, `DigitalSignature`, `RFC9116`
* Namespace `\CycloneDX\Core\Spec`
* New method `SpecFactory::make1dot6()` to reflect _CycloneDX_ Specification-1.6 ([#421] via [#422])
* Enum `Version` got new case `v1dot6` to reflect _CycloneDX_ Specification-1.6 ([#421] via [#422])
* Style
* Applied latest PHP Coding Standards (via [#415])

[#415]: https://github.com/CycloneDX/cyclonedx-php-library/pull/415
[#421]: https://github.com/CycloneDX/cyclonedx-php-library/issues/421
[#422]: https://github.com/CycloneDX/cyclonedx-php-library/pull/422

## 3.1.2 - 2024-03-18

Expand Down
2 changes: 1 addition & 1 deletion examples/build_and_serialize.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@

// endregion build the BOM

$spec = \CycloneDX\Core\Spec\SpecFactory::make1dot5();
$spec = \CycloneDX\Core\Spec\SpecFactory::make1dot6();

$prettyPrint = false;

Expand Down
4 changes: 3 additions & 1 deletion res/schema/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ some schema for offline use as download via [script](../../tools/schema-download
original sources: <https://github.com/CycloneDX/specification/tree/master/schema>

Currently using version
[fd4d383658196992364e5d62568a48c431ace515](https://github.com/CycloneDX/specification/tree/fd4d383658196992364e5d62568a48c431ace515)
[55343ba19dee1785acf1ce9191540d5fd7b590db](https://github.com/CycloneDX/specification/commit/55343ba19dee1785acf1ce9191540d5fd7b590db)

| file | note |
|------|------|
Expand All @@ -14,10 +14,12 @@ Currently using version
| [`bom-1.3.SNAPSHOT.xsd`](bom-1.3.SNAPSHOT.xsd) | applied changes: 1 |
| [`bom-1.4.SNAPSHOT.xsd`](bom-1.4.SNAPSHOT.xsd) | applied changes: 1 |
| [`bom-1.5.SNAPSHOT.xsd`](bom-1.5.SNAPSHOT.xsd) | applied changes: 1 |
| [`bom-1.6.SNAPSHOT.xsd`](bom-1.6.SNAPSHOT.xsd) | applied changes: 1 |
| [`bom-1.2.SNAPSHOT.schema.json`](bom-1.2.SNAPSHOT.schema.json) | applied changes: 2,3,4 |
| [`bom-1.3.SNAPSHOT.schema.json`](bom-1.3.SNAPSHOT.schema.json) | applied changes: 2,3,4 |
| [`bom-1.4.SNAPSHOT.schema.json`](bom-1.4.SNAPSHOT.schema.json) | applied changes: 2,3,4 |
| [`bom-1.5.SNAPSHOT.schema.json`](bom-1.5.SNAPSHOT.schema.json) | applied changes: 2,3,4 |
| [`bom-1.6.SNAPSHOT.schema.json`](bom-1.6.SNAPSHOT.schema.json) | applied changes: 2,3,4 |
| [`bom-1.2-strict.SNAPSHOT.schema.json`](bom-1.2-strict.SNAPSHOT.schema.json) | applied changes: 2,3,4 |
| [`bom-1.3-strict.SNAPSHOT.schema.json`](bom-1.3-strict.SNAPSHOT.schema.json) | applied changes: 2,3,4 |
| [`spdx.SNAPSHOT.xsd`](spdx.SNAPSHOT.xsd) | |
Expand Down
5,673 changes: 5,673 additions & 0 deletions res/schema/bom-1.6.SNAPSHOT.schema.json

Large diffs are not rendered by default.

8,290 changes: 8,290 additions & 0 deletions res/schema/bom-1.6.SNAPSHOT.xsd

Large diffs are not rendered by default.

Loading

0 comments on commit c426933

Please sign in to comment.