Skip to content

Commit

Permalink
allow multiple prerequisiteTags
Browse files Browse the repository at this point in the history
  • Loading branch information
k-yle committed Dec 26, 2024
1 parent 54c2a7d commit 1f01d70
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
17 changes: 17 additions & 0 deletions schemas/field.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 1f01d70

Please sign in to comment.