ahultgren / swagger-elm

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

Support for specifying module name for output #16

Closed abingham closed 7 years ago

abingham commented 7 years ago

Is there a way to specify the name of the module generated by swagger-to-elm? I can't find one.

This feature would be useful in cases where swagger-to-elm is used as part of an automated build process and I need the output as part of a larger Elm project.

ahultgren commented 7 years ago

I agree that would be a useful feature! It's not possible yet though. Meanwhile you could do something like cat swagger.json | swagger-to-elm | sed 's/^module Decoder/module Mymodule/' > Mymodule.elm.

abingham commented 7 years ago

Ok, thanks.