0.1.2 • Published 2 years ago
@nextunicorn/json-to-swagger-schema v0.1.2
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,
})