Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect type. Expected "string | array | object(Azure Pipelines)".yaml-schema: Azure Pipelines #578

Closed
doggy8088 opened this issue Apr 8, 2024 · 1 comment
Labels
Area: VsCodeExtension duplicate This issue or pull request already exists

Comments

@doggy8088
Copy link

doggy8088 commented Apr 8, 2024

My azure-pipelines.yml in my VSCode appear an error. It works before. My syntax seems correct. I checked with the doc here.

image

The definition of the YAML Schema seems incorrect. See below:

"any": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"$ref": "#/definitions/any"
}
},
{
"type": "object",
"additionalProperties": true
}
]
},

@winstliu
Copy link
Member

winstliu commented Apr 8, 2024

Please ensure that your syntax highlighting language in the bottom-right is set to "Azure Pipelines", not YAML. See also #513.

@winstliu winstliu closed this as not planned Won't fix, can't repro, duplicate, stale Apr 8, 2024
@winstliu winstliu added duplicate This issue or pull request already exists and removed triage labels Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: VsCodeExtension duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants