Converts JSON Schema definitions into JSDoc @typedef and @property annotations. Version 1.1.1 stable, with low release cadence. Supports options like autoDescribe, hyphenatedDescriptions, custom types, and format mappings. Useful for generating type documentation from existing JSON schemas, particularly for object validation schemas.
npm install json-schema-to-jsdocNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Converts a simple JSON schema object into a JSDoc typedef with optional hyphenated property descriptions.
Use dynamic import() if needed in CJS projects, or switch to ES modules.
Use the 'descriptionPlaceholder' option instead, or omit to use default behavior.
Set 'defaultPropertyType' to a custom type like 'any' or null to omit type entirely.
Manually provide a 'description' in the schema to avoid auto-generated text.
Use a JSON Schema resolver like 'json-schema-ref-parser' to dereference before passing to this package.
Replace require('json-schema-to-jsdoc') with import jsdoc from 'json-schema-to-jsdoc' or use dynamic import()Ensure your project uses ES modules by setting 'type': 'module' in package.json, or use a bundler.
Run npm install json-schema-to-jsdoc and ensure Node.js version >= 16.
Provide formats as { formatName: { type: 'customType' } } exactly as documented.No dependency data recorded yet.