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:
Michael 2022-11-01 13:13:02 +01:00 committed by GitHub
parent 3127ba9c7c
commit 80080bdf47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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",