redhat-developer / redhat-developer/yaml-language-server
Missing required property value reported as type error
Open
@msivasubramaniaan is already working on this.
Since Mar 2, 2023.
- #855 by @msivasubramaniaan — closed without merging
bug
- Dominant language
- TypeScript
- Stars
- 1.5k
- Forks
- 352
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 11
Description
Describe the bug
A missing required property is reported as a type error.
Incorrect type. Expected "string".
This is likely due to the YAML to JSON conversion which inserts a null where the yaml has no value.
Expected Behavior
The error should be reported as a missing value.
Current Behavior
The error is reported as at type error.
Steps to Reproduce
- Copy and open this blueprint in vscode where the yaml-language-server is installed.
- Add this yaml-language-server schema declaration: https://raw.githubusercontent.com/Cloud-Schematics/vscode-blueprint-schema/master/blueprint_schema.json
- Remove the value of the
nameof one of the modules.
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.
Assessment
This issue has not been assessed yet.