From 5dea96389d47458294577ae1ad6fa93237342fdb Mon Sep 17 00:00:00 2001 From: David Waltermire Date: Thu, 1 Jan 2026 11:48:11 -0500 Subject: [PATCH] fix: correct YAML indentation in null value test files Fix ambiguous YAML indentation in assessment-results test files that caused parsing errors with stricter metaschema-java validation. The control-selections and control-objective-selections elements now have proper indentation as siblings under reviewed-controls. --- .../yaml-null/example_ar_nullvar-1.yaml | 16 ++++++++-------- .../yaml-null/example_ar_nullvar-2.yaml | 16 ++++++++-------- .../yaml-null/example_ar_nullvar-3.yaml | 16 ++++++++-------- 3 files changed, 24 insertions(+), 24 deletions(-) diff --git a/src/test/resources/yaml-null/example_ar_nullvar-1.yaml b/src/test/resources/yaml-null/example_ar_nullvar-1.yaml index 27dce37d..6ab37b60 100644 --- a/src/test/resources/yaml-null/example_ar_nullvar-1.yaml +++ b/src/test/resources/yaml-null/example_ar_nullvar-1.yaml @@ -20,15 +20,15 @@ assessment-results: from an assessment plan in OSCAL format and processed in GitHub Actions. start: 2022-12-05T18:02:05.217748+00:00 reviewed-controls: - control-objective-selections: - - include-objectives: - - objective-id: ac-8_obj.a.1 - - objective-id: ac-8_obj.a.2 - - objective-id: ac-8_obj.a.3 - - objective-id: ac-8_obj.a.4 control-selections: - - include-controls: - - control-id: ac-8 + - include-controls: + - control-id: ac-8 + control-objective-selections: + - include-objectives: + - objective-id: ac-8_obj.a.1 + - objective-id: ac-8_obj.a.2 + - objective-id: ac-8_obj.a.3 + - objective-id: ac-8_obj.a.4 remarks: Control objective selections are declared separately of the include-controls directive, must be explicit here. diff --git a/src/test/resources/yaml-null/example_ar_nullvar-2.yaml b/src/test/resources/yaml-null/example_ar_nullvar-2.yaml index 42aab060..869f7d87 100644 --- a/src/test/resources/yaml-null/example_ar_nullvar-2.yaml +++ b/src/test/resources/yaml-null/example_ar_nullvar-2.yaml @@ -20,15 +20,15 @@ assessment-results: from an assessment plan in OSCAL format and processed in GitHub Actions. start: 2022-12-05T18:02:05.217748+00:00 reviewed-controls: - control-objective-selections: - - include-objectives: - - objective-id: ac-8_obj.a.1 - - objective-id: ac-8_obj.a.2 - - objective-id: ac-8_obj.a.3 - - objective-id: ac-8_obj.a.4 control-selections: - - include-controls: - - control-id: ac-8 + - include-controls: + - control-id: ac-8 + control-objective-selections: + - include-objectives: + - objective-id: ac-8_obj.a.1 + - objective-id: ac-8_obj.a.2 + - objective-id: ac-8_obj.a.3 + - objective-id: ac-8_obj.a.4 remarks: Control objective selections are declared separately of the include-controls directive, must be explicit here. diff --git a/src/test/resources/yaml-null/example_ar_nullvar-3.yaml b/src/test/resources/yaml-null/example_ar_nullvar-3.yaml index 1dfef5f2..a49f8766 100644 --- a/src/test/resources/yaml-null/example_ar_nullvar-3.yaml +++ b/src/test/resources/yaml-null/example_ar_nullvar-3.yaml @@ -20,15 +20,15 @@ assessment-results: from an assessment plan in OSCAL format and processed in GitHub Actions. start: 2022-12-05T18:02:05.217748+00:00 reviewed-controls: - control-objective-selections: - - include-objectives: - - objective-id: ac-8_obj.a.1 - - objective-id: ac-8_obj.a.2 - - objective-id: ac-8_obj.a.3 - - objective-id: ac-8_obj.a.4 control-selections: - - include-controls: - - control-id: ac-8 + - include-controls: + - control-id: ac-8 + control-objective-selections: + - include-objectives: + - objective-id: ac-8_obj.a.1 + - objective-id: ac-8_obj.a.2 + - objective-id: ac-8_obj.a.3 + - objective-id: ac-8_obj.a.4 remarks: Control objective selections are declared separately of the include-controls directive, must be explicit here.