vscode-yaml
vscode-yaml copied to clipboard
[feat] ignore next line json-schema error
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. 😰
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.
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. 💫
Duplicate of https://github.com/redhat-developer/vscode-yaml/issues/666