update(userspace/engine): relax validation for values in exceptions

Defining `exceptions` with empty `values` is a legitimate use case since the values can be added to another rules file. Even when values are not populated elsewhere, Falco can work without issues; that's the reason why the `values` field is not required. With this change, we avoid emitting useless validation warnings in situations where exceptions are just defined but not actually used because values are not being provided.

Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
This commit is contained in:
Leonardo Grasso
2025-04-09 15:02:51 +02:00
committed by poiana
parent d15cf450fc
commit 6e717daa95

View File

@@ -119,8 +119,7 @@ const char rule_schema_string[] = LONG_STRING_CONST(
"values": {}
},
"required": [
"name",
"values"
"name"
],
"title": "Exception"
},