lagom / sbt-lagom-descriptor-generator

Lagom API code generator
Apache License 2.0
23 stars 12 forks source link

Parameterize Api naming #25

Open ignasi35 opened 7 years ago

ignasi35 commented 7 years ago

Current sbt plugin will use the source file name as the base for the output service api class name (interface or trait). This leads to non-idiomatic names and is very unflexible. End users should be able to provide a Map[String, String] on sbt settings:

Map( `petservice.json` -> `MyPetService`)

See https://github.com/lagom/sbt-lagom-descriptor-generator/blob/070a71d207a2c5b1888ced3c7fd4e3a22536b379/lagom-descriptor-generator-sbt-plugin/src/main/scala/com/lightbend/lagom/spec/sbt/LagomOpenApiGenerator.scala#L42

ignasi35 commented 7 years ago

See https://github.com/lagom/sbt-lagom-descriptor-generator/issues/24#issuecomment-301036347