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

YAML autocompletion and validation works only for the first YAML definition in a file (schema through modeline) #1066

Open
1 of 4 tasks
ma-ble opened this issue Oct 23, 2024 · 0 comments

Comments

@ma-ble
Copy link

ma-ble commented Oct 23, 2024

Describe the bug

YAML autocompletion and validation works as expected for the first YAML definition in the file.

Screenshot 2024-10-23 at 14 50 52

Validation works also as expected.

Screenshot 2024-10-23 at 14 53 54

When I try to add another YAML definition into the same file, there is no autocompletion or validation available.

Screenshot 2024-10-23 at 14 51 56 Screenshot 2024-10-23 at 14 53 26

Expected Behavior

It would be great if you can add multiple resources with the same or different schema in the same file.

Steps to Reproduce

My schema "test.schema.json" is

{
  "properties": {
    "my_key": {
      "description": "My string",
      "enum": ["my_value"],
      "type": "string"
    }
  },
  "type": "object"
}

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