Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@goast/kotlin

Package Overview
Dependencies
Maintainers
0
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@goast/kotlin

Provides gOAst generators for generating Kotlin code from OpenAPI specifications.

  • 0.4.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
86
decreased by-84.59%
Maintainers
0
Weekly downloads
 
Created
Source

gOAst (@goast/kotlin)

@goast/kotlin NPM Version @goast/kotlin JSR Version

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 KotlinModelsGenerator generator.
  • KotlinOkHttp3ClientsGenerator: Generates OkHttp3 clients for Kotlin from paths in the OpenAPI specification(s).
    • Depends on the output of the KotlinModelsGenerator generator.

API Documentation 📖

The API documentation can be found here.

FAQs

Package last updated on 04 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc