vscode-yaml icon indicating copy to clipboard operation
vscode-yaml copied to clipboard

[feat] ignore next line json-schema error

Open loynoir opened this issue 2 years ago • 3 comments

Is your enhancement related to a problem? Please describe.

https://github.com/yarnpkg/berry/issues/5023

.yarnrc.yml

unsafeHttpWhitelist:
  - "x-npm-registry-server"
String does not match the pattern of 
"[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)".
yaml-schema: .yarnrc.yml

Describe the solution you would like

.yarnrc.yml

unsafeHttpWhitelist:
  # yaml-schema-ignore-next-line
  - "x-npm-registry-server"

Describe alternatives you have considered

Additional context

The only red line in codebase. 😰

loynoir avatar Nov 03 '22 12:11 loynoir

I have the same issue, only red line in the codebase. Ansible molecule supports custom drivers, but the schema doesn't know their names, so I'd like to disable validation only for that line rather than maintaining a fork of the schema.

odsock avatar Jan 05 '23 01:01 odsock

My alternative proposal is that the schema be corrected. It should not be required to have a period here. Ignoring the warning isn't as good of a feature as fixing the incorrect definition.

In my case, I just need localhost. 💫

quisido avatar Jan 09 '24 02:01 quisido

Duplicate of https://github.com/redhat-developer/vscode-yaml/issues/666

onedr0p avatar Mar 11 '24 10:03 onedr0p