Skip to content

Commit

Permalink
add filter and one-of to string setting
Browse files Browse the repository at this point in the history
  • Loading branch information
matcool committed Jun 30, 2024
1 parent 5043ee7 commit 9caea2c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ dist/
pnpm-lock.yaml
.vscode/
*.md
.github/
.github/
assets/*.json
11 changes: 11 additions & 0 deletions assets/mod-info-validation.json
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,17 @@
"match": {
"type": "string",
"description": "A regex the string must match."
},
"filter": {
"type": "string",
"description": "A string containing all the allowed characters for the input."
},
"one-of": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of the only allowed values for the setting. Turns the setting into a selector instead of an input."
}
},
"required": ["type", "default"]
Expand Down

0 comments on commit 9caea2c

Please sign in to comment.