redhat-developer / redhat-developer/vscode-yaml

Incorrect type. Expected "string".yaml-schema: Notify

Open
#727 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
829
Forks
260
Avg merge
5h 43m
Merged PRs (30d)
1

Description

Describe the bug

Parser will signal errors in changed_when conditions

Expected Behavior

Parser should recognize correct boolean conditions in changed_when section

Current Behavior

    - name: Checking if we have to update an already present IP Address
      debug:
        msg: Calling update handler
      changed_when:
        - _ip_address_was_found
        - _ipam_ip_address_data.note != phpipam_description or _ipam_ip_address_data.hostname != phpipam_hostname
      notify: 
        - "Update IP Address"

All conditions under changed_when are marked and signaled as Incorrect type. Expected "boolean"

Steps to Reproduce

Put simple condition in changed_when section

Environment

  • Windows
  • Mac
  • Linux
  • other (please specify)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named. Start by reproducing the YAML snippet and tracing how the language server validates changed_when entries; done means valid boolean conditions are no longer reported as type errors and the behavior is covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.