openapi

(โ˜… 275)

A set of packages and tools for working with OpenAPI, Swagger, Arazzo and Overlay Specification documents.

  • .gitattributes
  • .gitignore
  • .gitmodules
  • .golangci.yaml
  • .goreleaser.yaml
  • .mise.toml
  • AGENTS.md
  • CODEOWNERS
  • go.mod
  • go.sum
  • go.work
  • INSTALL.md
  • LICENSE
  • README.md

# Installation Guide

1. Get the code
git clone https://github.com/speakeasy-api/openapi

Downloads the entire project code from GitHub to your computer.

cd openapi

Moves into the project folder you just downloaded.

2. Official Install Script

Easy Recommended
Prerequisites
  • Homebrew A package manager for macOS/Linux.
  • Go Go is required to use go install.
brew install openapi

Installs the pre-built package via Homebrew โ€” no source build required.

go install github.com/speakeasy-api/openapi/cmd/openapi@latest

Downloads and installs the specified version directly โ€” no need to clone the repo yourself.

curl -fsSL https://go.speakeasy.com/openapi.sh | bash

Downloads and runs the official install script in one line โ€” this handles the full setup automatically.

โœ… After installing, open a new terminal and run the program's version command (e.g. --version) to confirm it worked.

Pulled directly from this repo's README.

3. Node.js

Easy
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Node.js Node.js must be installed to use npm. The LTS version is recommended.
โš ๏ธ This is a large repository, so this method may point to an internal sub-package rather than the actual core product. Check the full README as well.
cd openapi/linter/customrules/testdata

This project's files live in a subfolder, so move into it first.

npm install

Downloads and installs the libraries listed in package.json.

npm start

Starts the development/run server.

โœ… After running the command, open the address shown in the terminal (usually something like http://localhost:3000) in your browser.

4. Go

Medium
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Go The Go compiler and toolchain.
go install github.com/speakeasy-api/openapi/cmd/openapi@latest

Downloads and installs the specified version directly โ€” no need to clone the repo yourself.

<!-- Go Install Badge -->

Type this command into your terminal and run it.

<a href="#installation"><img alt="Go Install" src="https://img.shields.io/badge/go%20install-ready-00ADD8.svg?style=for-the-badge&logo=go"></a>

Type this command into your terminal and run it.

โœ… If the build finishes without errors, it worked. If you used go run ., check the terminal output.

Pulled directly from this repo's README.

// repository documentation