mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-04-13 15:24:12 +00:00
Add pipeline.step.when.branch string-array type to schema.json (#1380)
Previously the schema only accepted string, this fixes #1379 and matches the linter to the existing capabilities of the constraints.go (and therefore server).
This commit is contained in:
parent
3127ba9c7c
commit
80080bdf47
1 changed files with 12 additions and 1 deletions
|
@ -200,7 +200,18 @@
|
|||
},
|
||||
"branch": {
|
||||
"description": "TODO Read more: https://woodpecker-ci.org/docs/usage/pipeline-syntax#branch",
|
||||
"type": "string"
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"minLength": 1
|
||||
},
|
||||
{
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
},
|
||||
"event": {
|
||||
"description": "TODO Read more: https://woodpecker-ci.org/docs/usage/pipeline-syntax#event",
|
||||
|
|
Loading…
Reference in a new issue