-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide a usage example in the readme #39
Comments
What do we expect to get from the example? What should we document? Why? |
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. |
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. |
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? |
What do you want to do with the resolved scheme? |
My hope was to pass it along to something like react-jsonschema-form |
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 |
@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: |
No description provided.
The text was updated successfully, but these errors were encountered: