Skip to content

Commit bc78c2b

Browse files
[issue-426] update model: decision and justification type
to 7ecb523ea152ed40c09ff6451b47ceefad148164 Signed-off-by: Armin Tänzer <armin.taenzer@tngtech.com>
1 parent f481c16 commit bc78c2b

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ additional installation of optional dependencies
5050
* Serialize to JSON-LD
5151

5252
See [Quickstart to SPDX 3.0](#quickstart-to-spdx-30) below.
53-
The implementation is based on the descriptive markdown files in the repository https://github.com/spdx/spdx-3-model (latest commit: ea2e1446ae937c6722b3f599f95813f8747d54b4).
53+
The implementation is based on the descriptive markdown files in the repository https://github.com/spdx/spdx-3-model (latest commit: 7ecb523ea152ed40c09ff6451b47ceefad148164).
5454

5555

5656
# Installation

src/spdx_tools/spdx3/model/security/ssvc_vuln_assessment_relationship.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ class SsvcDecisionType(Enum):
2828

2929
@dataclass_with_properties
3030
class SsvcVulnAssessmentRelationship(VulnAssessmentRelationship):
31-
decision: SsvcDecisionType = None
31+
decision_type: SsvcDecisionType = None
3232

3333
def __init__(
3434
self,
3535
spdx_id: str,
3636
from_element: str,
3737
relationship_type: RelationshipType,
3838
to: List[str],
39-
decision: SsvcDecisionType,
39+
decision_type: SsvcDecisionType,
4040
creation_info: Optional[CreationInfo] = None,
4141
name: Optional[str] = None,
4242
summary: Optional[str] = None,

src/spdx_tools/spdx3/model/security/vex_not_affected_vuln_assessment_relationship.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class VexJustificationType(Enum):
2929

3030
@dataclass_with_properties
3131
class VexNotAffectedVulnAssessmentRelationship(VexVulnAssessmentRelationship):
32-
justification: Optional[VexJustificationType] = None
32+
justification_type: Optional[VexJustificationType] = None
3333
impact_statement: Optional[str] = None
3434
impact_statement_time: Optional[datetime] = None
3535

@@ -58,7 +58,7 @@ def __init__(
5858
withdrawn_time: Optional[datetime] = None,
5959
vex_version: Optional[str] = None,
6060
status_notes: Optional[str] = None,
61-
justification: Optional[VexJustificationType] = None,
61+
justification_type: Optional[VexJustificationType] = None,
6262
impact_statement: Optional[str] = None,
6363
impact_statement_time: Optional[datetime] = None,
6464
):

tests/spdx3/fixtures.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ def listed_license_fixture(
314314
}
315315

316316
SSVC_VULN_ASSESSMENT_RELATIONSHIP_DICT = {
317-
"decision": SsvcDecisionType.ACT,
317+
"decision_type": SsvcDecisionType.ACT,
318318
"relationship_type": RelationshipType.HAS_SSVC_ASSESSMENT_FOR,
319319
}
320320

@@ -337,7 +337,7 @@ def listed_license_fixture(
337337
}
338338

339339
VEX_NOT_AFFECTED_VULN_ASSESSMENT_RELATIONSHIP_DICT = {
340-
"justification": VexJustificationType.COMPONENT_NOT_PRESENT,
340+
"justification_type": VexJustificationType.COMPONENT_NOT_PRESENT,
341341
"impact_statement": "Not using this vulnerable part of this library.",
342342
"impact_statement_time": datetime(2015, 10, 15),
343343
"relationship_type": RelationshipType.DOES_NOT_AFFECT,

0 commit comments

Comments
 (0)