You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Profile Resolution spec: updated names of 'remove' directives (#1381)
* Profile Resolution spec: updated names of 'remove' directives
* Resolves#1246. Also repairs a few errors in surrounding copy.
* Adding swap space to address Hugo memory exhaustion.
Co-authored-by: David Waltermire <david.waltermire@nist.gov>
Copy file name to clipboardExpand all lines: src/specifications/profile-resolution/profile-resolution-specml.xml
+10-9Lines changed: 10 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -1325,27 +1325,28 @@ control:
1325
1325
<ul>
1326
1326
<li>
1327
1327
<p>
1328
-
<reqlevel="must"id="req-modify-alter-remove-by-id">The remove directive criteria <src>by-id</src> MUST match an object if and only if its value is identical to the <src>id</src> value of that object.</req> Because
1329
-
<src>id</src> values are unique, this criteria will result in the remove directive removing only a single object.
1328
+
<reqlevel="must"id="req-modify-alter-remove-by-id">The remove directive criterion <src>by-id</src> MUST match an object if and only if its value is identical to the <src>id</src> value of that object.</req> Because
1329
+
<src>id</src> values are unique, this criterion has the effect of removing a single object.
1330
1330
</p>
1331
1331
</li>
1332
1332
<li>
1333
1333
<p>
1334
-
<reqlevel="must"id="req-modify-alter-remove-name-ref">The remove directive criteria <src>name-ref</src> MUST match an object if and only if its value is identical to the value of that object's <src>name</src> child.</req>
1334
+
<reqlevel="must"id="req-modify-alter-remove-name-ref">The remove directive criterion <src>by-name</src> MUST match an object if and only if its value is identical to the value of that object's <src>name</src> child.</req>
1335
1335
</p>
1336
1336
</li>
1337
1337
<li>
1338
-
<p><reqlevel="must"id="req-modify-alter-remove-ns-ref">The remove directive criteria <src>ns-ref</src> MUST match an object if and only if its value is identical to the value of that object's <src>ns</src> child.</req></p>
1338
+
<p><reqlevel="must"id="req-modify-alter-remove-ns-ref">The remove directive criterion <src>by-ns</src> MUST match an object if and only if its value is identical to the value of that object's <src>ns</src> child. This directive
1339
+
is intended to be used in combination with <src>by-name</src> but may also be used to match all objects assigned to a given namespace (<src>ns</src>). Note that <src>by-ns="http://csrc.nist.gov/ns/oscal"</src> will address objects assigned to that namespace by default (where no explicit <src>ns</src> is given).</req></p>
1339
1340
</li>
1340
1341
<li>
1341
-
<p><reqlevel="must"id="req-modify-alter-remove-class-ref">The remove directive criteria <src>class-ref</src> MUST match an object if and only if its value is identical to the value of that object's <src>class</src> child.</req></p>
1342
+
<p><reqlevel="must"id="req-modify-alter-remove-class-ref">The remove directive criterion <src>by-class</src> MUST match an object if and only if its value is identical to the value of that object's <src>class</src> child.</req></p>
1342
1343
</li>
1343
1344
<li>
1344
-
<p><reqlevel="must"id="req-modify-alter-remove-item-name">The remove directive criteria <src>item-name</src> MUST match an object if and only if its value is identical to the value of that object's serialized name.</req> For example,
1345
-
<code>remove:item-name:prop</code> has the effect of removing all
1346
-
<src>prop</src>objects from inside the control.
1345
+
<p><reqlevel="must"id="req-modify-alter-remove-item-name">The remove directive criterion <src>by-item-name</src> MUST match an object if and only if its value is identical to the value of that object's serialized name.</req> For example,
1346
+
<code>remove.by-item-name: "prop"</code> has the effect of removing all
1347
+
<src>prop</src>objects from inside the control.
1347
1348
</p>
1348
-
<p><reqlevel="must"id="req-modify-alter-remove-item-name-array">In serialization formats that use arrays of objects in the OSCAL model, an object's name MUST be referenced as singular formof its containing parent array.</req> For example, in the JSON format, remove:item-name:link would remove all of the objects inside of the <src>links</src> array. </p>
1349
+
<p><reqlevel="must"id="req-modify-alter-remove-item-name-array">In serialization formats that represent objects as (unlabeled) members of arrays, an object's name MUST be referenced in its (implicit) singular form, not the name of its containing array.</req> For example, in the JSON format, <src>remove.item-name: "link"</src> would remove all members of the <src>links</src> array, along with the array itself (as being empty it would no longer be valid). </p>
0 commit comments