We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
---
[Originally reported as https://github.com/redhat-developer/vscode-yaml/issues/995, before I understood this really belongs more here.]
I wrote my first trivial JSON schema enola.schema.jsonc, like this:
enola.schema.jsonc
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://docs.enola.dev/json-schema/enola_meta.schema.jsonc", "title": "Enola.dev Meta Model", "description": "See https://docs.enola.dev", "type": "object", "additionalProperties": false, "properties": { "name": { "type": "string", "description": "Short technical name of this Type." } }, "required": ["name"] }
Then I wrote an test.yaml file using that schema, like this:
test.yaml
# yaml-language-server: $schema=enola.schema.jsonc name: enola.dev/url doc: enola.md#URL --- name: enola.dev/id doc: enola.md#ID
It does put a "red squiggle" on the first doc: enola.md#URL but not on the second doc: enola.md#ID.
doc: enola.md#URL
doc: enola.md#ID
In fact the 2nd name: enola.dev/id doesn't have the "hover" with the descriptionfrom the schema either.
name: enola.dev/id
description
It looks like the YAML --- syntax for "multiple documents within a single stream" isn't supported / doesn't work?
I expected it to flag the doc attribute as red in both my URL and ID attributes.
doc
The text was updated successfully, but these errors were encountered:
I also encounter the same issue using Neovim. It seems like this is a regression. Multidoc used to work as far as I remember.
Sorry, something went wrong.
No branches or pull requests
[Originally reported as https://github.com/redhat-developer/vscode-yaml/issues/995, before I understood this really belongs more here.]
I wrote my first trivial JSON schema
enola.schema.jsonc
, like this:Then I wrote an
test.yaml
file using that schema, like this:Current Behavior
It does put a "red squiggle" on the first
doc: enola.md#URL
but not on the seconddoc: enola.md#ID
.In fact the 2nd
name: enola.dev/id
doesn't have the "hover" with thedescription
from the schema either.It looks like the YAML
---
syntax for "multiple documents within a single stream" isn't supported / doesn't work?Expected Behavior
I expected it to flag the
doc
attribute as red in both my URL and ID attributes.The text was updated successfully, but these errors were encountered: