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

Newlines and other chars in JSON schema "examples" property interpreted correctly #1009

Open
1 of 4 tasks
jirimosinger opened this issue Feb 23, 2024 · 1 comment
Open
1 of 4 tasks

Comments

@jirimosinger
Copy link

Describe the bug

Newlines and other chars are not reflected properly when hovering over a variable in YAML file which uses a JSON schema containing the "examples" property

example.schema.json

YAML contents:

prop: This\n    is\n    wrong\n    while\n    doing\n    hover    \n

Expected Behavior

I would expect to see the text with newlines and other chars correctly interpreted

Current Behavior

This is what I see when hovering over prop in the YAML file:
image

Steps to Reproduce

  1. Refer from YAML file to example.schema.json
  2. Write prop in the YAML file
  3. Hover over prop

Environment

  • Windows
  • Mac
  • Linux
  • other (please specify)
@lord0gnome
Copy link

I have this issue as well !

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

2 participants