GithubHelp home page GithubHelp logo

Comments (7)

vishal-hegde avatar vishal-hegde commented on August 10, 2024 1

Any update on this issue?
I tried using
"yaml.schemas": {
"kubernetes":"https://github.com/instrumenta/kubernetes-json-schema/blob/master/master/deployment-apps-v1.json"
}
But still, the autocomplete doesn't work. Is this a known issue?

from vscode-yaml.

JPinkney avatar JPinkney commented on August 10, 2024

I believe this is actually a schema issue from the schema generated via https://github.com/fabric8io/kubernetes-model.

from vscode-yaml.

stevenmiller avatar stevenmiller commented on August 10, 2024

Running into this same issue, freshly create yaml files failed to have any auto-completion.

Using his sample file text from above:

image

from vscode-yaml.

JPinkney avatar JPinkney commented on August 10, 2024

Issue reported on the schema side here

from vscode-yaml.

thuandt avatar thuandt commented on August 10, 2024

@JPinkney Should we use schema from https://kubernetesjsonschema.dev/ ?

from vscode-yaml.

JPinkney avatar JPinkney commented on August 10, 2024

@vishal-hegde If you want to set that schema through a github url you would need to use: https://raw.githubusercontent.com/instrumenta/kubernetes-json-schema/master/master/deployment-apps-v1.json.

Also your yaml.settings is wrong, on the left hand should be the schema (or kubernetes is also valid here) and the right side should be the files that you want it to match.

I.e.

yaml.schemas {
    "kubernetes": "test.yaml"
}

or

yaml.schemas {
    "https://raw.githubusercontent.com/instrumenta/kubernetes-json-schema/master/master/deployment-apps-v1.json": "test.yaml"
}

from vscode-yaml.

JPinkney avatar JPinkney commented on August 10, 2024

Also, I'm going to close this as its not actually an issue with the code in this repository it is an issue with an external schema and thus should be reported in that repository.

from vscode-yaml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.