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)" when using default value in boolean parameter #566

Closed
AsierVillanueva opened this issue Jan 11, 2024 · 2 comments

Comments

@AsierVillanueva
Copy link

AsierVillanueva commented Jan 11, 2024

Extension Version: v1.228.0

Description

When assigning a default value to a parameter of type boolean, intellisense shows the error: Incorrect type. Expected "string | array | object(Azure Pipelines)"

Minimal example to reproduce

Create a template using Azure Pipelines Schema and add a boolean parameter with default value:

parameters:
- name: booleanParameter
  type: boolean
  default: true

steps:
- script: echo ${{ parameters.booleanParameter }}

image

@winstliu
Copy link
Member

Please make sure you have the file language set to Azure Pipelines, not YAML.

See also #513

@winstliu winstliu closed this as not planned Won't fix, can't repro, duplicate, stale Jan 12, 2024
@AsierVillanueva
Copy link
Author

Please make sure you have the file language set to Azure Pipelines, not YAML.

Yes, that was the problem.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants