Skip to content

buildo/metarpheus-swagger

Repository files navigation

metarpheus-swagger

metarpheus interpreter producing Swagger specs

Build Status

Try it!

npm start

Will read input.json and produce swagger.json and swagger.yaml.

You can copy-paste the yaml output to http://editor.swagger.io and see the result.

Custom Types

If you need custom type mappings, you can provide a json file structured like:

{
  "MyType": { "type": "number", "format": "double" },
  "MyOtherType": { "type": "object" }
}

Pass the file using the -t or --customTypes option, e.g.

node --harmony-destructuring --harmony_default_parameters index.js -t customTypes.json input.json

Development

npm run watch

Same as npm start, but it will watch the source files.

About

metarpheus interpreter producing Swagger specs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •