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

@windmill-labs/openapi-codegen-cli

Package Overview
Dependencies
Maintainers
3
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@windmill-labs/openapi-codegen-cli

A CLI for generating windmill-compatible scripts from OpenAPI specs.

  • 1.1.1
  • npm
  • Socket score

Version published
Weekly downloads
97
increased by177.14%
Maintainers
3
Weekly downloads
 
Created
Source

openapi-generator-cli

A CLI for generating windmill-compatible scripts from OpenAPI specs.

bunx @windmill-labs/openapi-codegen-cli 
  --schemaUrl https://api.example.com/openapi.json 
  --outputDir ./out 
  --resourceTypeName ExampleResource 
  --baseUrl https://api.example.com # optional
  --tokenName token # optional, default: token, only used if authKind is bearer or query
  --headerName X-Custom-Auth # optional, default: none, only used if authKind if header
  --usernameName username # optional, default: username, only used if authKind is basic
  --passwordName password # optional, default: password, only used if authKind is basic
  --authKind bearer # optional, default: bearer, possible values: bearer, basic, query, header
  --extraResourceParams extraParam1,extraParam2 # optional, default: none, comma separated list of extra params to add to the resource type
  --extraHeaders header1:extraParam1,header2:extraParam2 # optional, default: none, comma separated list of extra headers to pass in the format headerName:paramNameInResourceType (the params must be defined by the extraResourceParams)
  --pretty # optional, default: false, prettify the generated code using prettier

FAQs

Package last updated on 29 Nov 2023

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