Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
latest
MaSch0212/goastWorks with
•JSR Score76%•This package works with Node.js, Deno, BunIt is unknown whether this package works with Cloudflare Workers



Downloads1/wk
•Published21 hours ago (0.4.23)
Provides gOAst generators for generating Kotlin code from OpenAPI specifications.
gOAst (@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 @goast/kotlin package provides generators for Kotlin code generation from OpenAPI
specifications.
Usage Example 🚀
import { OpenApiGenerator } from '@goast/core'; import { KotlinModelsGenerator, KotlinSpringControllersGenerator } from '@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
KotlinModelsGeneratorgenerator.
- 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
KotlinModelsGeneratorgenerator.
- Depends on the output of the
API Documentation 📖
The API documentation can be found here.
Built and signed on
GitHub Actions
Add Package
deno add jsr:@goast/kotlin
Import symbol
import * as kotlin from "@goast/kotlin";
Import directly with a jsr specifier
import * as kotlin from "jsr:@goast/kotlin";
Add Package
pnpm i jsr:@goast/kotlin
pnpm dlx jsr add @goast/kotlin
Import symbol
import * as kotlin from "@goast/kotlin";
Add Package
yarn add jsr:@goast/kotlin
yarn dlx jsr add @goast/kotlin
Import symbol
import * as kotlin from "@goast/kotlin";
Add Package
vlt install jsr:@goast/kotlin
Import symbol
import * as kotlin from "@goast/kotlin";
Add Package
npx jsr add @goast/kotlin
Import symbol
import * as kotlin from "@goast/kotlin";
Add Package
bunx jsr add @goast/kotlin
Import symbol
import * as kotlin from "@goast/kotlin";