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

@repositive/apigen

Package Overview
Dependencies
Maintainers
8
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@repositive/apigen

Generate code from OpenAPI specs

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
8
Weekly downloads
 
Created
Source

Generate API definitions from OpenAPI YAML specs

Install

cargo install --git ssh://git@github.com/repositive/apigen.git

Rust is required to use this tool. Install Rust with Rustup.

You can only install apigen if you a member of the Repositive Github org. You also need to add your SSH key to ssh-agent for the cargo install command to work properly.

ssh-add -K ~/.ssh/id_rsa

Usage

apigen ts ./path/to/api.yaml -o ./path/to/output/folder

Output is rendered to a folder at ./path/to/output/folder/. If the folder (or its parents) don't exist, they will be created. Any other non-target files in the folder will not be overwritten, but it's good practice to keep this folder clean, and untracked by Git.

Development

Setup:

  • Install Rust with Rustup
  • Install Node with NVM
  • npm install

Run:

# Generates Typescript types into `./rendered/typescript`
cargo run -- ts /path/to/api.yaml -o ./rendered/typescript

View docs:

cargo doc --open

Build release:

npm pack

Publish to NPM:

npm publish --access public

FAQs

Package last updated on 02 Jul 2018

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