schema/v2: restrict input names
Ensure that input names start with a character and otherwise only contain characters, numbers, `-`, `_` and `.`. Limit their length to 255.
This commit is contained in:
parent
ef5e9364bb
commit
47fefe7e2d
1 changed files with 5 additions and 2 deletions
|
|
@ -18,8 +18,11 @@
|
||||||
|
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"title": "Collection of inputs for a stage",
|
"title": "Collection of inputs for a stage",
|
||||||
"additionalProperties": {
|
"additionalProperties": false,
|
||||||
"$ref": "#/definitions/input"
|
"patternProperties": {
|
||||||
|
"^[a-zA-Z][a-zA-Z0-9_\\-\\.]{0,254}": {
|
||||||
|
"$ref": "#/definitions/input"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue