Commit 6c204f7
authored
Feat: prevent unknwon enums from rendering (#496)
- fixes #490
- BC: Component serialization may throw `cyclonedx.exception.serialization.SerializationOfUnsupportedComponentTypeException`
- feat: serialization have own exceptions of `cyclonedx.exception.serialization.*`
- tests: lots of (functional) tests related to enums and serialization
- misc: bump `py-serializable@^0.15` -> `@^0.16`
details & progress:
- [x] `DataFlow`
- [x] `Encoding`
- [x] `HashAlgorithm`
- [x] `ExternalReferenceType`
convert "unknown" to `other`
- [x] `component.ComponentScope`
- [x] `component.ComponentType`. > tests done, migrator open
Unclear how to proceed. dropping the info is a bad idea here.
Best would be to throw an exception and abort the rendering.
- [x] `component.PatchClassification`
- [x] `impact_analysis.ImpactAnalysisAffectedStatus`
- [x] `impact_analysis.ImpactAnalysisJustification`
- [x] `impact_analysis.ImpactAnalysisResponse`
- [x] `impact_analysis.ImpactAnalysisState`
- [x] `issue.IssueClassification`
- [x] `vulnerability.VulnerabilityScoreSource`
convert "unknown" to `other`
- [x] `vulnerability.VulnerabilitySeverity`
---------
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>1 parent ac1f48a commit 6c204f7
File tree
156 files changed
+8526
-85
lines changed- cyclonedx
- exception
- model
- schema
- _res
- serialization
- tests
- _data/snapshots
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
156 files changed
+8526
-85
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | 66 | | |
68 | 67 | | |
69 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
0 commit comments