ahultgren / swagger-elm

Generate Elm types and decoders based on a Swagger file
74 stars 9 forks source link

Swagger Elm

Swagger elm generates types and decoders from Swagger document.

Try it out in the browser!

Note: This project is currently under active and initial development. Thus everything is not finished and there's no guarantee that anything will work as promised. However I'm happy for any testing and feedback I can get.

Installation

  1. npm install ahultgren/swagger-elm -g
  2. Optionally install elm format

Usage (unix)

Using elm-format:

cat swagger.json | swagger-to-elm | elm-format --stdin

Unformatted (no guarantee it will work):

cat swagger.json | swagger-to-elm

Contribution

Help and feedback would be gladly appreciated, but please just drop me a line (an issue) before you start, to prevent wasted effort.

Features

License

ISC