Skip to content

Commit

Permalink
Add documentnation around kotlin codegen support
Browse files Browse the repository at this point in the history
  • Loading branch information
scprek committed Mar 25, 2024
1 parent 450c1c7 commit 119e027
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/docs/asciidoc/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1853,7 +1853,7 @@ micronaut {

== OpenAPI code generation

The `io.micronaut.openapi` plugin adds support for generating https://www.openapis.org/[OpenAPI] clients or servers, given an OpenAPI definition.
The `io.micronaut.openapi` plugin adds support for generating https://www.openapis.org/[OpenAPI] clients or servers, given an OpenAPI definition, in both Java and Kotlin.

The plugin adds an link:api/io/micronaut/gradle/openapi/OpenApiExtension.html[openapi] extension to the `micronaut` configuration block.

Expand Down Expand Up @@ -1886,6 +1886,8 @@ micronaut {
modelPackageName.set("com.mycompany.model")
useOptional.set(true)
clientId.set("some-client-id")
// Supports Kotlin codegen too
lang.set("kotlin")
}
}
}
Expand Down Expand Up @@ -1922,6 +1924,8 @@ micronaut {
apiPackageName.set("com.mycompany.api")
modelPackageName.set("com.mycompany.model")
controllerPackage.set("com.mycompany.controller")
// Supports Kotlin codegen too
lang.set("kotlin")
}
}
}
Expand Down

0 comments on commit 119e027

Please sign in to comment.