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

Warning when using template expression as values #420

Open
winstliu opened this issue Aug 12, 2021 · 1 comment
Open

Warning when using template expression as values #420

winstliu opened this issue Aug 12, 2021 · 1 comment
Labels
accurate-yaml-validation Fidelity of matching YAML features Area: VsCodeExtension bug Something isn't working

Comments

@winstliu
Copy link
Member

winstliu commented Aug 12, 2021

For example:

jobs:
- ${{ each version in parameters.versions }}:
  - job: ${{ version }}

will mark ${{ version }} with the warning String does not match the pattern of "^[_A-Za-z0-9]*$".

There's also

${{ each step in parameters.steps }}:
  - ${{ step }}

which yields Incorrect type. Expected "object" for ${{ step }}.

@aglasson
Copy link

I want to add to this another example using slightly different text format that I am getting the same warning on.

- ${{ each item in parameters.object }}: 
    - job: 'do_${{item.name}}'

This syntax runs in a pipeline perfectly fine, I use it in multiple pipelines daily.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accurate-yaml-validation Fidelity of matching YAML features Area: VsCodeExtension bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants