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

@influxdata/oats

Package Overview
Dependencies
Maintainers
28
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@influxdata/oats

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

  • 0.7.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
97
decreased by-20.49%
Maintainers
28
Weekly downloads
 
Created
Source

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
  • Does not support significant portions of the OpenAPI spec

Installation

yarn add -D @influxdata/oats

Usage

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

An opinionated OpenAPI doc to TypeScript HTTP client generator

Options:
  -V, --version                output the version number
  -i, --include <parts>        comma sepated list of code parts to generate (all by default: "types,request,operations")
  -p, --prettier [true/false]  prettier output code (default: true)
  --withDoc [true/false]       document generated types (default: true)
  --patchScript <file>         apply script that modifies openapi document (example: https://github.com/influxdata/influxdb-client-js/blob/master/packages/apis/scripts/patchSwagger.js)
  --storeOperations <file>     store operations to file
  -h, --help                   output usage information

Contributing

See CONTRIBUTING.md.

FAQs

Package last updated on 15 Sep 2022

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