Giter VIP home page Giter VIP logo

Comments (8)

JPinkney avatar JPinkney commented on June 30, 2024 1

I'm working on adding this now. I think I was just confused as I haven't seen that before

from vscode-yaml.

JPinkney avatar JPinkney commented on June 30, 2024 1

It should be ready in the next few days!

from vscode-yaml.

JPinkney avatar JPinkney commented on June 30, 2024 1

@schickling We just updated the extension with a brand new autocompletor! It now fixes this issue and does autocompletion on values in the schema as well!

from vscode-yaml.

JPinkney avatar JPinkney commented on June 30, 2024

Out of curiosity is sub_field a child node of some_dynamic_key and some_dynamic_key a child node of my_other_root_field? If this is the case then it looks to be a bug. The autocompletion was built to be context dependent so as long as some_dynamic_key is a child of my_other_root_field then it should autocomplete with sub_field.

Heres a demo of how it should behave:
out
(I used http://json.schemastore.org/swagger-2.0 as my schema)

from vscode-yaml.

schickling avatar schickling commented on June 30, 2024

What you've posted seems to work for me but here is what doesn't work for me:

    "yaml.schemas": {
        "https://raw.githubusercontent.com/graphcool/graphcool-json-schema/master/src/schema.json": "graphcool.yml"
    },

do-25

from vscode-yaml.

JPinkney avatar JPinkney commented on June 30, 2024

At the current time the auto completion is context dependent only. Since some_name isn't a child of functions we won't be able to autocomplete anything under some_name. Additionally, auto completion is provided for results that are valid according to the schema, since some_name isn't valid in the schema as far as I can see it wouldn't autocomplete on that either.

from vscode-yaml.

schickling avatar schickling commented on June 30, 2024

I'm not sure why you think it's not valid? As you can see here in the definition functions is of type: object which should allow for arbitrary keys. The values however are of type: #/definitions/function.

So either we've misunderstood JSON schema or this seems like something this plugin should support 🙂

from vscode-yaml.

schickling avatar schickling commented on June 30, 2024

It's awesome that you're working on this. Is there any rough eta?

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.