``` yarn add -D @influxdata/oats ```
npm install @influxdata/oatsAn 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
- Does not support significant portions of the OpenAPI spec
```
yarn add -D @influxdata/oats
``
$ yarn run oats --help
`
Usage: oats [options]
An opinionated OpenAPI doc to TypeScript HTTP client generator
Options:
-V, --version output the version number
-i, --include
-p, --prettier [true/false] prettier output code (default: true)
--withDoc [true/false] document generated types (default: true)
--patchScript
--storeOperations
-h, --help output usage information
`
See CONTRIBUTING.md`.