
Toolset facilitates working with OpenAPI, offering a parser, typed ADT, code generator, and Gradle plugin for generating code and clients from OpenAPI specifications.
WORK IN PROGRESS
OpenKTTP is a toolset for working with OpenAPI in Kotlin. This project exists out of several pieces, and they can be combined in different ways to achieve different goals.
Core ADT, structures the data in a convenient way to retrieve.OpenAPI Typed ADTAdd the following to your build.gradle.kts file.
plugin {
id("io.github.nomisrev.openapi-kt-plugin") version "0.0.4"
}
openApiConfig {
spec("OpenAI", file("openai.yaml")) {
// packageName = "my.company.openai.generated"
}
}Then run the following command to generate the code, but it will also automatically run when you build your project.
./gradlew generateOpenApiThis will generate a io.github.nomisrev.openapi package with the generated code,
in your /build/generated directory.
WORK IN PROGRESS
OpenKTTP is a toolset for working with OpenAPI in Kotlin. This project exists out of several pieces, and they can be combined in different ways to achieve different goals.
Core ADT, structures the data in a convenient way to retrieve.OpenAPI Typed ADTAdd the following to your build.gradle.kts file.
plugin {
id("io.github.nomisrev.openapi-kt-plugin") version "0.0.4"
}
openApiConfig {
spec("OpenAI", file("openai.yaml")) {
// packageName = "my.company.openai.generated"
}
}Then run the following command to generate the code, but it will also automatically run when you build your project.
./gradlew generateOpenApiThis will generate a io.github.nomisrev.openapi package with the generated code,
in your /build/generated directory.