Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# default
* text=auto

# structured formats
*.css text eol=lf
*.dtd text eol=lf
*.ent text eol=lf
*.html text eol=lf
*.js text eol=lf
*.json text eol=lf
*.sch text eol=lf
*.scss text eol=lf
*.xml text eol=lf
*.xpl text eol=lf
*.xsd text eol=lf
*.xsl text eol=lf
*.xspec text eol=lf
*.yaml text eol=lf
*.yml text eol=lf

# markdown
*.md text eol=lf

# script files
*.sh text eol=lf
/build/ci-cd/config/* text eol=lf

# programming language files
*.py text eol=lf
*.ts text eol=lf

# other binary files
*.png binary
*.jpg binary
2 changes: 1 addition & 1 deletion oscal
Submodule oscal updated 54 files
+1 −1 .github/PULL_REQUEST_TEMPLATE.md
+1 −1 .github/workflows/issue-triage.yml
+3 −3 .github/workflows/periodic.yml
+3 −3 .github/workflows/release.yml
+6 −4 .github/workflows/status.yml
+6 −0 .gitmodules
+5 −2 CONTRIBUTING.md
+5 −3 README.md
+1 −1 build/.nvmrc
+3 −2 build/Makefile
+2 −2 build/README.md
+7 −1 build/markdown-link-check.json
+1 −1 build/metaschema-xslt
+1,016 −248 build/package-lock.json
+5 −2 build/package.json
+2 −2 build/pom.xml
+78 −0 build/resolve-entities.xspec
+46 −0 build/resolve-entities3.xsl
+1 −0 build/xspec
+1 −1 decisions/0002-communicating-nist-oscal-events-to-the-public.md
+2 −2 decisions/0004-issue-triage.md
+1 −1 decisions/0005-repository-reorganization.md
+2 −2 decisions/0007-implementation-agnostic-tests.md
+1 −1 decisions/0009-tutorials-system-lifecycle.md
+325 −122 src/metaschema/oscal_assessment-common_metaschema.xml
+5 −5 src/metaschema/oscal_assessment-plan_metaschema.xml
+8 −8 src/metaschema/oscal_assessment-results_metaschema.xml
+85 −27 src/metaschema/oscal_catalog_metaschema.xml
+2 −1 src/metaschema/oscal_complete_metaschema.xml
+28 −26 src/metaschema/oscal_component_metaschema.xml
+54 −8 src/metaschema/oscal_control-common_metaschema.xml
+80 −97 src/metaschema/oscal_implementation-common_metaschema.xml
+665 −0 src/metaschema/oscal_mapping-common_metaschema.xml
+50 −0 src/metaschema/oscal_mapping_metaschema.xml
+68 −84 src/metaschema/oscal_metadata_metaschema.xml
+16 −16 src/metaschema/oscal_poam_metaschema.xml
+35 −24 src/metaschema/oscal_profile_metaschema.xml
+76 −83 src/metaschema/oscal_ssp_metaschema.xml
+7 −0 src/metaschema/shared-constraints/allowed-values-component_inventory-item_property-name.ent
+5 −0 src/metaschema/shared-constraints/allowed-values-property-name-networked-components.ent
+1 −1 src/specifications/profile-resolution/profile-resolution-specml-requirements.xspec
+5 −5 src/specifications/profile-resolution/profile-resolution-specml-working.xml
+1 −1 src/specifications/profile-resolution/profile-resolution-specml.xml
+1 −1 src/specifications/profile-resolution/readme.md
+1 −1 src/specifications/profile-resolution/resolution-testing.xml
+1 −1 src/specifications/profile-resolution/spec-tester.py
+3 −1 src/utils/resolver-pipeline/Makefile
+1 −1 src/utils/resolver-pipeline/oscal-profile-resolve-metadata.xsl
+2 −2 src/utils/resolver-pipeline/testing/1_selected/select-mapping-controls.xspec
+2 −2 src/utils/resolver-pipeline/testing/1_selected/select-rlink.xspec
+2 −2 src/utils/resolver-pipeline/testing/1_selected/select.xspec
+13 −6 src/utils/resolver-pipeline/testing/2_metadata/uuid-method-choice.xspec
+2 −1 src/utils/resolver-pipeline/testing/3_merged/merge-custom.xspec
+2 −2 src/utils/resolver-pipeline/testing/4_modified/modify.xspec
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
package gov.nist.secauto.oscal.lib.model.control.profile;

import gov.nist.secauto.oscal.lib.model.Matching;
import gov.nist.secauto.oscal.lib.model.ProfileSelectControlById;
import gov.nist.secauto.oscal.lib.model.SelectControlById;

import java.util.Collection;
import java.util.LinkedList;
Expand Down Expand Up @@ -75,8 +75,8 @@ public Builder matching(@NonNull Pattern pattern) {
}

@NonNull
public ProfileSelectControlById build() {
ProfileSelectControlById retval = new ProfileSelectControlById();
public SelectControlById build() {
SelectControlById retval = new SelectControlById();
retval.setWithChildControls(withChildControls ? "yes" : "no");
retval.setWithIds(withIds);
retval.setMatching(matching.stream()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ protected void handleAlter(IRequiredValueAssemblyNodeItem item, IIndexer indexer
remove.getByName(),
remove.getByClass(),
remove.getById(),
remove.getByNs(),
remove.getByNs() == null ? null : remove.getByNs().toString(),
RemoveVisitor.TargetType.forFieldName(remove.getByItemName()))) {
throw new ProfileResolutionEvaluationException(
String.format("The remove did not match a valid target"));
Expand Down
11 changes: 5 additions & 6 deletions src/main/metaschema-bindings/oscal-metaschema-bindings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@
<extend-base-class>gov.nist.secauto.oscal.lib.model.control.AbstractPart</extend-base-class>
</java>
</define-assembly-binding>
<define-assembly-binding name="select-control-by-id">
<java>
<extend-base-class>gov.nist.secauto.oscal.lib.model.control.profile.AbstractProfileSelectControlById</extend-base-class>
</java>
</define-assembly-binding>
</metaschema-binding>
<metaschema-binding
href="../../../oscal/src/metaschema/oscal_catalog_metaschema.xml">
Expand Down Expand Up @@ -89,12 +94,6 @@
<use-class-name>ProfileGroup</use-class-name>
</java>
</define-assembly-binding>
<define-assembly-binding name="select-control-by-id">
<java>
<use-class-name>ProfileSelectControlById</use-class-name>
<extend-base-class>gov.nist.secauto.oscal.lib.model.control.profile.AbstractProfileSelectControlById</extend-base-class>
</java>
</define-assembly-binding>
<define-assembly-binding name="set-parameter">
<java>
<use-class-name>ProfileSetParameter</use-class-name>
Expand Down
Loading