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,
})
npm i @nextunicorn/json-to-swagger-schema --save
import jsonToSwaggerSchema from "@nextunicorn/json-to-swagger-schema";
const MyObjectSchmea = jsonToSwaggerSchema({
myKey: 'string',
isNumber: 1,
})
npm i @nextunicorn/json-to-swagger-schema
6
0.1.2
MIT
5.5 kB
7