Skip to content

Commit c8a7abd

Browse files
authoredJul 16, 2024··
fix: add missing platform and type to spec (#7149)
Signed-off-by: nikpivkin <[email protected]>
1 parent 7066f5e commit c8a7abd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed
 

‎pkg/iac/types/compliance.go

+5-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ type Spec struct {
2121
Title string `yaml:"title"`
2222
Description string `yaml:"description"`
2323
Version string `yaml:"version"`
24-
RelatedResources []string `yaml:"relatedResources"`
24+
Platform string `yaml:"platform"`
25+
Type string `yaml:"type"`
26+
RelatedResources []string `yaml:"relatedResources,omitempty"`
2527
Controls []Control `yaml:"controls"`
2628
}
2729

@@ -30,8 +32,8 @@ type Control struct {
3032
ID string `yaml:"id"`
3133
Name string `yaml:"name"`
3234
Description string `yaml:"description,omitempty"`
33-
Checks []SpecCheck `yaml:"checks"`
34-
Commands []Command `yaml:"commands"`
35+
Checks []SpecCheck `yaml:"checks,omitempty"`
36+
Commands []Command `yaml:"commands,omitempty"`
3537
Severity Severity `yaml:"severity"`
3638
DefaultStatus ControlStatus `yaml:"defaultStatus,omitempty"`
3739
}

0 commit comments

Comments
 (0)
Please sign in to comment.