From 5bd9b6bf584865cd41004e235634cb3c2074dcab Mon Sep 17 00:00:00 2001 From: Nelson Kopliku Date: Thu, 18 Jan 2024 11:51:46 +0100 Subject: [PATCH] Make metadata required in a check --- guides/check_definition.schema.json | 1 + guides/specification.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/guides/check_definition.schema.json b/guides/check_definition.schema.json index 025d3787..9fb37b0d 100644 --- a/guides/check_definition.schema.json +++ b/guides/check_definition.schema.json @@ -55,6 +55,7 @@ "group", "description", "remediation", + "metadata", "facts", "expectations" ], diff --git a/guides/specification.md b/guides/specification.md index 2ba41301..0c23ffc1 100644 --- a/guides/specification.md +++ b/guides/specification.md @@ -116,7 +116,7 @@ Following are listed the top level properties of a Check definition yaml. | `description` | required | [see more](#description) | | `remediation` | required | [see more](#remediation) | | `severity` | not required | [see more](#severity) | -| `metadata` | not required | [see more](#metadata) | +| `metadata` | required | [see more](#metadata) | | `facts` | required | [see more](#facts) | | `values` | not required | [see more](#values) | | `expectations` | required | [see more](#expectations) |