trestle.core.refs_validator
trestle.core.refs_validator ¤
Validate by confirming all refs have corresponding id.
Attributes¤
Classes¤
RefsValidator ¤
Bases: Validator
Validator to confirm all references in responsible parties are found in roles.
Source code in trestle/core/refs_validator.py
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | |
Functions¤
model_is_valid(model, quiet, trestle_root=None) ¤
Test if the model is valid.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model | TopLevelOscalModel | A top level OSCAL model. | required |
quiet | bool | Don't report msgs unless invalid. | required |
Returns:
| Type | Description |
|---|---|
bool | True (valid) if the model's responsible parties match those found in roles. |
Source code in trestle/core/refs_validator.py
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | |
Functions¤
handler: python