This is an experimental OpenAPI schema-to-code translator.
It is written in Common LISP and is designed to support multiple output transformers.
- Languages: TypeScript
- Only
components/schemas
are supported (only models are translated) - No support for remote schemas
- Install SBCL
- Install Quicklisp
- Clone this project to
~/quicklisp/local-projects
- Run the following command to start the server on port 8080
sbcl --disable-debugger --eval '(ql:quickload "oascg/web")' --eval '(oascg-web:start-server-and-wait)'
To translate models in the Petstore API to TypeScript, run the following:
curl -H 'Accept: text/typescript' http://localhost:8080 -d@examples/oas-pp.json
export interface Pet {id: number;name: string;tag?: string;}
export type Pets = Array<Pet>
export interface Error {code: number;message: string;}