Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create jsdoc types from json schemas

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

?

like image 885
uzay95 Avatar asked Oct 22 '15 13:10

uzay95


1 Answers

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

like image 59
Francis Nepomuceno Avatar answered Nov 04 '22 08:11

Francis Nepomuceno