11

I have tons of json schema for node.js project. Can I use them in any way for:

  • Accessing them as jsdoc types from ".js" code files to increase webstorm intellisense accuracy
  • Or for creating jsdoc type definitions automatically

?

Anthropic
  • 631
  • 1
  • 10
  • 29
uzay95
  • 14,378
  • 28
  • 105
  • 167
  • Great idea. I've had similar thoughts as well. Unfortunately, I don't think there is anything out there like what you are looking for. – Jason Desrosiers Oct 22 '15 at 14:39
  • @Jason, let's see what developers will write ;) I'm quite sure someone did something for this. – uzay95 Oct 22 '15 at 15:32

2 Answers2

1

The closest I have seen to what you suggest is VSCode's support for JSON Schema with regard to editing JSON files.

I would expect given they have started to support JSON Schema, that it would certainly be worth logging an issue with them regarding extending the capabilities of such support. If you did and let me know I would certainly support it!

Anthropic
  • 631
  • 1
  • 10
  • 29
0

I had the same question before and some time in 2017 created a json-schema-to-jsdoc utility in GitHub.

You can find it now in npm: https://www.npmjs.com/package/json-schema-to-jsdoc

Neps
  • 4,347
  • 3
  • 28
  • 33