openapi-to-jsdoc

Crates.ioopenapi-to-jsdoc
lib.rsopenapi-to-jsdoc
version0.1.3
sourcesrc
created_at2024-03-24 02:13:52.875647
updated_at2024-04-04 14:23:00.828454
descriptionGenerate JSDoc typedefs from OpenAPI 3.0.x spec schemas
homepage
repositoryhttps://github.com/kshyr/openapi-to-jsdoc
max_upload_size
id1184034
size52,166
Kostiantyn Shyrolapov (kshyr)

documentation

README

Generates JSDoc @typedef for every schema in OpenAPI spec.


Install:

cargo install openapi-to-jsdoc

Usage

openapi-to-jsdoc -i https://api.example.com/openapi.json -o output.js

  • -i, --input (default: openapi.json) - Takes in path to file or URL to openapi.json
  • -i --output (default: types.js) - Output file
Commit count: 7

cargo fmt