JSPM

@nextunicorn/json-to-swagger-schema

0.1.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q38046F
  • License MIT

generate swagger schema from json string

Package Exports

  • @nextunicorn/json-to-swagger-schema
  • @nextunicorn/json-to-swagger-schema/dist/index.js

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 (@nextunicorn/json-to-swagger-schema) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Json to Swagger Schema

Install

npm i @nextunicorn/json-to-swagger-schema --save

Usage

import jsonToSwaggerSchema from "@nextunicorn/json-to-swagger-schema";

const MyObjectSchmea = jsonToSwaggerSchema({
    myKey: 'string',
    isNumber: 1,
})