lagom / sbt-lagom-descriptor-generator

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

Render Spec-defined types #8

Closed ignasi35 closed 7 years ago

ignasi35 commented 7 years ago

Swagger (and other specs) define types for request/response/params.

Once #7 is ongoing, a rendering of this spec-defined types is required.

This issue only represents the actual code generation: from the intermediate format to the actual generated code.

It is responsibility of each spec parser to grant the correct conversion from the spec format to our intermediate format.

ignasi35 commented 7 years ago

As of b6f4f9eae39f949580a81feab8671303c0b70561 there are Java and Scala renderers for POJO/case classes and enums declared in OpenAPI V2 specs.

The support is currently happy path and should have extra work in testing specially to ensure all possible edge cases are supported. Further efforts and discussions should be started in separate issues.