Skip to content

Commit

Permalink
fix: improve pre-process reordering; handle special cases & valid values
Browse files Browse the repository at this point in the history
Signed-off-by: Lou DeGenaro <[email protected]>
  • Loading branch information
degenaro committed Apr 17, 2024
1 parent 3d0bea6 commit 6b4f12c
Show file tree
Hide file tree
Showing 18 changed files with 1,327 additions and 2,089 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ testpaths = [
]

[tool.black]
line-length = 200
line-length = 500

[tool.isort]
line_length = 200
line_length = 500
114 changes: 66 additions & 48 deletions release-1.1.2-schemas-fixup/oscal_assessment-plan_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2504,13 +2504,7 @@
"$ref": "#/definitions/TokenDatatype"
},
{
"enum": [
"component",
"inventory-item",
"location",
"party",
"user"
]
"$ref": "#/definitions/AssessmentSubjectValidValues"
}
]
},
Expand Down Expand Up @@ -2578,14 +2572,7 @@
"$ref": "#/definitions/TokenDatatype"
},
{
"enum": [
"component",
"inventory-item",
"location",
"party",
"user",
"resource"
]
"$ref": "#/definitions/SelectSubjectByIdValidValues"
}
]
},
Expand Down Expand Up @@ -2632,14 +2619,7 @@
"$ref": "#/definitions/TokenDatatype"
},
{
"enum": [
"component",
"inventory-item",
"location",
"party",
"user",
"resource"
]
"$ref": "#/definitions/SubjectReferenceValidValues"
}
]
},
Expand Down Expand Up @@ -3055,13 +3035,7 @@
"$ref": "#/definitions/TokenDatatype"
},
{
"enum": [
"ssp-statement-issue",
"control-objective",
"mitigation",
"finding",
"historic"
]
"$ref": "#/definitions/ObservationTypeValidValues"
}
]
}
Expand Down Expand Up @@ -3640,14 +3614,7 @@
"$ref": "#/definitions/TokenDatatype"
},
{
"enum": [
"open",
"investigating",
"remediating",
"deviation-requested",
"deviation-approved",
"closed"
]
"$ref": "#/definitions/RiskStatusValidValues"
}
]
},
Expand Down Expand Up @@ -3695,16 +3662,7 @@
"$ref": "#/definitions/URIDatatype"
},
{
"enum": [
"http://fedramp.gov",
"http://fedramp.gov/ns/oscal",
"http://csrc.nist.gov/ns/oscal",
"http://csrc.nist.gov/ns/oscal/unknown",
"http://cve.mitre.org",
"http://www.first.org/cvss/v2.0",
"http://www.first.org/cvss/v3.0",
"http://www.first.org/cvss/v3.1"
]
"$ref": "#/definitions/NamingSystemValidValues"
}
]
},
Expand Down Expand Up @@ -4042,6 +4000,66 @@
"http://fedramp.gov",
"http://fedramp.gov/ns/oscal"
]
},
"SelectSubjectByIdValidValues": {
"enum": [
"component",
"inventory-item",
"location",
"party",
"user",
"resource"
]
},
"AssessmentSubjectValidValues": {
"enum": [
"component",
"inventory-item",
"location",
"party",
"user"
]
},
"NamingSystemValidValues": {
"enum": [
"http://fedramp.gov",
"http://fedramp.gov/ns/oscal",
"http://csrc.nist.gov/ns/oscal",
"http://csrc.nist.gov/ns/oscal/unknown",
"http://cve.mitre.org",
"http://www.first.org/cvss/v2.0",
"http://www.first.org/cvss/v3.0",
"http://www.first.org/cvss/v3.1"
]
},
"SubjectReferenceValidValues": {
"enum": [
"component",
"inventory-item",
"location",
"party",
"user",
"resource"
]
},
"ObservationTypeValidValues": {
"enum": [
"ssp-statement-issue",
"control-objective",
"mitigation",
"finding",
"historic"
]
},
"RiskStatusValidValues": {
"enum": [
"open",
"investigating",
"remediating",
"deviation-requested",
"deviation-approved",
"closed"
]
}
},
"properties": {
Expand Down
Loading

0 comments on commit 6b4f12c

Please sign in to comment.