Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

foxel/openapi3-typescript-codegen

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

openapi3-typescript-codegen

TypeScript code generator for OpenAPI 3.0.0

Inspired by problems with openapi-codegen

Idea is to provide native OpenAPI 3 generator with all language-specific code being put into templates with help of generic helpers.

Currently only TypeScript language and Angular frameworks are supported.

Work in progress

Usage

Installing

npm i -g openapi3-typescript-codegen

CLI

op3-codegen {openapi-definition.yaml} [options]

Options:
  -o, --output     Specify output directory         [string] [default: "./out/"]
  -t, --templates  Specify templates directory (pro only)               [string]

Limitations in OpenAPI support (to be removed)

  • support only for 'http' ('basic' and 'bearer') and 'apiKey' Security schemas,
  • parameters encoder supports only style='form',explode=false encoding scheme,
  • only GET, POST, PUT, DELETE operations code is generated

About

typescript codegen for OpenAPI 3

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.