redhat-developer / redhat-developer/vscode-yaml
Incorrect type. Expected "string".yaml-schema: Notify
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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