This package has been archived, and as such it is read-only.
@masch-spikes/goast-kotlin@0.0.3
latest
It is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers




JSR Score
23%
Published
a year ago (0.0.3)
gOAst (@masch-spikes/goast-kotlin)
gOAst stands for generative Open API specification transformer, a tool designed to transform OpenAPI specifications into various forms with flexibility and extensibility at its core.
For more Information, please visit the gOAst GitHub Repository.
Purpose 👍
The @masch-spikes/goast-kotlin
package provides generators for Kotlin code generation from
OpenAPI specifications.
Usage Example 🚀
import { OpenApiGenerator } from '@masch-spikes/goast-core'; import { KotlinModelsGenerator, KotlinSpringControllersGenerator } from '@masch-spikes/goast-kotlin'; async function main() { await new OpenApiGenerator({ outputDir: '.api' }) .useType(KotlinModelsGenerator) .useType(KotlinSpringControllersGenerator) .parseAndGenerateFromDir('.openapi'); } main();
Available Generators 📚
KotlinModelsGenerator
: Generates Kotlin data classes from schemas in the OpenAPI specification(s).KotlinSpringControllersGenerator
: Generates Spring controllers for Kotlin from paths in the OpenAPI specification(s).- Depends on the output of the
KotlinModelsGenerator
generator.
- Depends on the output of the
KotlinOkHttp3ClientsGenerator
: Generates OkHttp3 clients for Kotlin from paths in the OpenAPI specification(s).- Depends on the output of the
KotlinModelsGenerator
generator.
- Depends on the output of the
API Documentation 📖
The API documentation can be found here.
Add Package
deno add jsr:@masch-spikes/goast-kotlin
Import symbol
import * as goast_kotlin from "@masch-spikes/goast-kotlin";
Import directly with a jsr specifier
import * as goast_kotlin from "jsr:@masch-spikes/goast-kotlin";
Add Package
pnpm i jsr:@masch-spikes/goast-kotlin
pnpm dlx jsr add @masch-spikes/goast-kotlin
Import symbol
import * as goast_kotlin from "@masch-spikes/goast-kotlin";
Add Package
yarn add jsr:@masch-spikes/goast-kotlin
yarn dlx jsr add @masch-spikes/goast-kotlin
Import symbol
import * as goast_kotlin from "@masch-spikes/goast-kotlin";
Add Package
vlt install jsr:@masch-spikes/goast-kotlin
Import symbol
import * as goast_kotlin from "@masch-spikes/goast-kotlin";
Add Package
npx jsr add @masch-spikes/goast-kotlin
Import symbol
import * as goast_kotlin from "@masch-spikes/goast-kotlin";
Add Package
bunx jsr add @masch-spikes/goast-kotlin
Import symbol
import * as goast_kotlin from "@masch-spikes/goast-kotlin";