JSPM

generate-openapi

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 264
  • Score
    100M100P100Q83076F
  • License MIT

Convert JSON object to Open API Speccification

Package Exports

  • generate-openapi

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (generate-openapi) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

generate-openapi

Convert JSON document to Open API YML Specification

usage

As binary:

generate-openapi file.json type

As npm package:

npm install generate-openapi
const generateOpenapi = require('generate-openapi')

console.log(generateOpenapi({a:{b:{c:1,d:'e'},f:1}}, 'type'))