Converts a JSON object to corresponding Swagger YAML schema
$ npm install --save
$ node json-to-yaml-schema.js '<JSON object>'
$ node json-to-yaml-schema.js '{"json": "abc"}'
->
type: "object"
properties:
json:
type: "string"
minLength: 1
required:
- "json"
example:
json: "abc"