@chnn/oats

``` yarn add -D @chnn/oats ```

Usage no npm install needed!

<script type="module">
  import chnnOats from 'https://cdn.skypack.dev/@chnn/oats';
</script>

README

An opinionated OpenAPI doc to TypeScript HTTP client generator.

In comparison to openapi-generator:

  • Strives to generate readable output
  • Supports enums, oneOf, and allOf
  • Does not require Java runtime
  • Generates fetch-based HTTP client with typed error responses

Installation

yarn add -D @chnn/oats

Usage

$ yarn run oats --help
Usage: oats [options] <spec>

Options:
  --types-only  only output type definitions
  -h, --help    output usage information