How I can change version kubernetes schema from 1.22.4 to another
pilot513 opened this issue · 9 comments
pilot513 commented
In last update I found that in coc-yaml used
KUBERNETES_SCHEMA_URL="https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.22.4-standalone-strict/all.json"
How is it possible to change, for example, to 1.19.7 or 1.23.5 ?
barn commented
Did adding this JSON to your :CocConfig
(~/.vim/coc-settings.json
for me) work at all? It's vaguely working for me I think.
{
"yaml.schemas": {
"https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.23.5-standalone-strict/all.json": [ "/*.yaml" ]
}
}
pilot513 commented
pilot513 commented
pilot513 commented
barn commented
what path is it set to? "/*.yaml"
barn commented
no idea how YAML will handle the bare string, so try quoting it in "
?
pilot513 commented
barn commented
is what I appear to have with:
{
// https://github.com/dense-analysis/ale#faq-coc-nvim
"diagnostic.displayByAle": true,
// no idea if these even arent default.
"yaml.completion": true,
"yaml.format": true,
"yaml.validate": true,
"yaml.schemaStoreEnabled": true,
"json.format.enable": true,
// https://octetz.com/c/vim-k8s-yaml-support/
"yaml.schemas": {
// Use https://github.com/yannh/kubernetes-json-schema as they're actually updated.
"https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.23.5-standalone-strict/all.json": [ "/*.yaml" ]
// Local copy of above, purely so it has a better filename in coc-yaml
// "//Users/bea/.vim/k8s-v1.22.4-standalone-strict.json": [ "/*.yaml" ]
}
}
This is my :CocInfo
## versions
vim version: VIM - Vi IMproved 8.2 8025000
node version: v18.2.0
coc.nvim version: 0.0.81-21a8e00b 2022-05-26 03:12:31 +0800
coc.nvim directory: /Users/bea/.vim/plug/coc.nvim
term: iTerm.app
platform: darwin
If that helps at all? Though I am not sure I have been any.
pilot513 commented