schema: `#/definitions/any` doesn't include all types
karunpoudel-chr opened this issue · 1 comments
karunpoudel-chr commented
#/definitions/any
is defined as
azure-pipelines-vscode/service-schema.json
Lines 30 to 46 in 956a7cb
One of the place it is used is to define default
value of parameter
azure-pipelines-vscode/service-schema.json
Lines 1200 to 1202 in 956a7cb
Default value can also be boolean or number depending upon the type
of parameter
.
Based on current schema, following parameter is invalid, although azure-pipelines.yml supports it.
parameters:
- name: myBoolean
displayName: myboolean
type: boolean
default: true
So #/definitions/any
should probably be defined as:
"any": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "array",
"items": {
"$ref": "#/definitions/any"
}
},
{
"type": "object",
"additionalProperties": true
}
]
},
ivanduplenskikh commented
The same problem as #566.
I'm closing the issue.