iheartradio/play-swagger

Overriding the name/location of swagger.yml

arteme opened this issue · 1 comments

It would be nice to be able to override location and name of the swagger.yml file directly from SBT. In my case, I'm trying to do preprocessing to generate parts of the file and I want to be able to specify my own file as the input to the swagger JSON generation.

Hi @arteme, is this what you are looking for?

// build.sbt

swaggerTarget := new File("path/to/swagger/location")
swaggerFileName := "customSwagger.json"