From 2242e65c8805437463a7e74e74bfd00d79271260 Mon Sep 17 00:00:00 2001 From: Alexander Stein Date: Wed, 1 Jun 2022 18:04:07 -0400 Subject: [PATCH] [WIP] Add rules model and refs into component-definition model. --- src/metaschema/oscal_component_metaschema.xml | 33 ++++ .../oscal_rules-common_metaschema.xml | 174 ++++++++++++++++++ 2 files changed, 207 insertions(+) create mode 100644 src/metaschema/oscal_rules-common_metaschema.xml diff --git a/src/metaschema/oscal_component_metaschema.xml b/src/metaschema/oscal_component_metaschema.xml index c757be4c80..398e1a5f5d 100644 --- a/src/metaschema/oscal_component_metaschema.xml +++ b/src/metaschema/oscal_component_metaschema.xml @@ -1,4 +1,5 @@ + @@ -26,6 +27,7 @@ + Component Definition @@ -41,6 +43,17 @@ + + rule + + + + test + + + + + component @@ -57,12 +70,21 @@

Since multiple component entries can be provided, each component must have a unique uuid.

+ + Backmatter Resource Index + An index of all backmatter resources. + +

A given component must not be referenced more than once within the same capability.

+ + Ensure that sources that reference a back-matter resource exist. + +
@@ -118,6 +140,11 @@ + + + + + + + + + A string that identifies the revision of the test. + + + A pointer to the resource that this test is derived from. + + + + + Test Reference + A reference to a test defined in this or an imported instance. + + Test Definition Universally Unique Identifier Reference + A reference to a test definition. + + + + Testing Scenario Universally Unique Identifier Reference + A reference to a testing scenario. + + + Rule Condition + A rule implementation condition + + Condition Negation + Determines if the result of evaluating the condition should be negated. + +

A condition can be negated using the following truth table.

+ + + + + + +
Result ValueNegation Value
truefalse
falsetrue
errorerror
not-applicablenot-applicable
+
+
+ + Rule Condition Operator + TODO + + + and + or + + + + + + pre-requisite + + + + condition + + + + + +
+ + Rule Testing Scenario + A rule testing scenario + + Testing Scenario Universally Unique Identifier + TODO + + + Rule Universally Unique Identifier Reference + A reference to a rule definition. + + + + + condition + + + + + + + Rule Implementation + TODO + + Rule Implementation Universally Unique Identifier + TODO + + + Rule Universally Unique Identifier Reference + A rule UUID reference + + + + Rule Implementation Description + A summary of why the referenced test scenario is applicable in this context. + + + + + + + + + + \ No newline at end of file