Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow multiple prerequisiteTags #87

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading