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

No diagnostics reported on empty files #413

Closed
1 of 4 tasks
jeffmaury opened this issue Feb 24, 2021 · 0 comments · Fixed by #426
Closed
1 of 4 tasks

No diagnostics reported on empty files #413

jeffmaury opened this issue Feb 24, 2021 · 0 comments · Fixed by #426
Labels
Milestone

Comments

@jeffmaury
Copy link
Member

Describe the bug

Created an empty devfile.yaml whose corresponding schema is here: https://github.com/devfile/api/releases/download/v2.0.0/devfile.json

Expected Behavior

I would expect diagnostics to be reported as schemaVersion is a required property

Current Behavior

No error reported

Steps to Reproduce

  1. add in yaml.schemas: "https://github.com/devfile/api/releases/download/v2.0.0/devfile.json":"devfile.y*ml"
  2. create a devfile.yaml file
  3. open the file

Environment

  • Windows
  • Mac
  • Linux
  • other (please specify)
@evidolob evidolob added the bug label Feb 24, 2021
@evidolob evidolob added this to the 0.17.0 milestone Mar 3, 2021
evidolob added a commit to evidolob/yaml-language-server that referenced this issue Mar 18, 2021
evidolob added a commit that referenced this issue Mar 18, 2021
Signed-off-by: Yevhen Vydolob <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants