Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information