Git Product home page Git Product logo

Comments (8)

aeschli avatar aeschli commented on June 24, 2024 1

@mtangoo The JSON language service is just a library that you can add as a node modules, for example in a language server. You probably are looking for samples for language servers. Have a look here:
https://www.npmjs.com/package/vscode-json-languageserver#integrate

from vscode-json-languageservice.

GeorgeGkas avatar GeorgeGkas commented on June 24, 2024

What do we expect to get from the example? What should we document? Why?

from vscode-json-languageservice.

cdietschrun avatar cdietschrun commented on June 24, 2024

This came from an internal email request. Basically, I'm a consumer of this service via npm packages, and it was very difficult to piece together what APIs I needed to call, or what objects I needed to prepare/pass to the API to make even the one call for doValidation make sense. We think examples of this would make sense.

I'm back on this subject as I'm trying to figure out how to use the JSONSchemaService (preferable the TypeScript itself and not just the javascript) and I'm not sure how to do that, since there's no getter for the schema service inside the language service, and I'm not sure why the npm packge (vscode-json-languageservice) doesn't seem to have Typescript code for anything but the language service.

from vscode-json-languageservice.

aeschli avatar aeschli commented on June 24, 2024

JSONSchemaService is considered an implementation detail. You should only use the API's as present in the json language service. That's the API we keep stable and that's the APIs we want to create samples for to illustrate the usage.

from vscode-json-languageservice.

cdietschrun avatar cdietschrun commented on June 24, 2024

OK, sure. I really want to be able to do the schema parsing/resolution that you do in the schema service, though. What would you recommend I do?

from vscode-json-languageservice.

aeschli avatar aeschli commented on June 24, 2024

What do you want to do with the resolved scheme?
For validation, use doValidation.

from vscode-json-languageservice.

cdietschrun avatar cdietschrun commented on June 24, 2024

My hope was to pass it along to something like react-jsonschema-form

from vscode-json-languageservice.

mtangoo avatar mtangoo commented on June 24, 2024

I have the same question. I want to use this with our Inhouse editor. But there are no instruction how to launch it. We want to use it over TCP not STDIO

from vscode-json-languageservice.

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.