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

Yes is incorrectly rejected as a boolean value #1071

Open
1 of 4 tasks
HighCommander4 opened this issue Dec 6, 2024 · 0 comments
Open
1 of 4 tasks

Yes is incorrectly rejected as a boolean value #1071

HighCommander4 opened this issue Dec 6, 2024 · 0 comments

Comments

@HighCommander4
Copy link

Describe the bug

Create a YAML file containing:

InlayHints:
  Enabled: Yes

Set the schema to clangd.

Expected Behavior

The file should pass validation. The clangd schema specifies the type of value for this key as "boolean", and YAML specification for boolean states that Yes is a valid spelling.

Current Behavior

A diagnostic is produced for the Yes token: Incorrect type. Expected "boolean".

Steps to Reproduce

See above.

Environment

  • Windows
  • Mac
  • Linux
  • other (please specify)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant