Skip to content

Commit

Permalink
Update schema for task restrictions (#705)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjroghelia authored Feb 8, 2021
1 parent c05b4fe commit f844a24
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions tasks.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,40 @@
}
}
},
"restrictions": {
"type": "object",
"additionalProperties": false,
"description": "Restrictions on tasks",
"properties": {
"commands": {
"type": "object",
"additionalProperties": false,
"description": "Restrictions on available task commands",
"properties": {
"mode": {
"type": "string",
"enum": [
"any",
"restricted"
]
}
}
},
"settableVariables": {
"type": "object",
"additionalProperties": false,
"description": "Restrictions on which variables can be set via commands",
"properties": {
"allowed": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
},
"$schema": {
"type": "string"
}
Expand Down

0 comments on commit f844a24

Please sign in to comment.