From 1f01d7011a3de1405b8b7fa021bc4f2484fda1ca Mon Sep 17 00:00:00 2001 From: Kyle Hensel Date: Sun, 26 Feb 2023 18:13:15 +1300 Subject: [PATCH] allow multiple `prerequisiteTag`s --- README.md | 1 + schemas/field.json | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/README.md b/README.md index ce2fe40..64d354b 100644 --- a/README.md +++ b/README.md @@ -631,6 +631,7 @@ An object defining the tags the feature needs before this field will be displaye And may optionally be combined with one of these properties: - `value`: The value that the key must have. +- `values`: The values that the key must have. - `valueNot`: The value that the key must not have. Alternatively, the object may contain a single property: diff --git a/schemas/field.json b/schemas/field.json index 66b4af6..49b9926 100644 --- a/schemas/field.json +++ b/schemas/field.json @@ -198,6 +198,23 @@ "additionalProperties": false, "required": ["key", "value"] }, + { + "$id": "requires-key-equals-values", + "type": "object", + "properties": { + "key": { + "description": "The key of the required tag", + "type": "string" + }, + "values": { + "description": "The values that the tag must have. (alternative to 'valueNot')", + "type": "array", + "items": { "type": "string" } + } + }, + "additionalProperties": false, + "required": ["key", "values"] + }, { "$id": "requires-key-not-value", "type": "object",