Comments (8)
@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.
What do we expect to get from the example? What should we document? Why?
from vscode-json-languageservice.
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.
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.
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.
What do you want to do with the resolved scheme?
For validation, use doValidation.
from vscode-json-languageservice.
My hope was to pass it along to something like react-jsonschema-form
from vscode-json-languageservice.
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)
- Assigning $ref to a path that has a pound sign throws an error HOT 1
- Request textDocument/documentSymbol failed. - Cannot read properties of undefined (reading 'range')
- Make JSONSchemaService an API
- defaultSnippets not showing following v5.3.0 HOT 2
- Intellisense recommends invalid schema uris for JSON Schema drafts HOT 2
- Unexpected token after updating to 5.3.5 HOT 1
- Validation of uuid format not working
- doHover seems to use the unresolved schema
- Package exports are problematic HOT 2
- insertFinalNewline should default to true
- anyOf error messaging is broken
- code completion breaks when anyOf defines `required` properties. HOT 2
- Regression: Problems loading reference schemaservice
- How to: $ref to external schemas in VSC
- Intellisense is missing JSON Schema versions 2019-09, 2020-12 HOT 3
- Support `title` schema property in completion items
- JSON Schema meta-schemas should not be downloaded
- Validation of uri-reference format does not seem to work well
- "time" format seems to be incorrectly excluding "00:00:00" HOT 1
- `getInfoContribution` is not composable HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-json-languageservice.