compliance-trestle
compliance-trestle copied to clipboard
Classes based on OSCAL schema do not enforce well-formed OSCAL content
Describe the bug
The csv_to_oscal_cd task produces an component definition that is not well-formed when a profile is specified for a rule with no mapped controls. This issue is meant to capture the root cause of this issue which is that the classes represents the OSCAL schema do not enforce this.
To Reproduce
Steps to reproduce the behavior:
See #1606 for reproduction steps
Expected behavior
Failure relating to the invalid OSCAL Model Object
Screenshots / Logs.
Related to #1606
Environment
- OS: [e.g. iOS]
- Python version:
- Installed packages: