#open-api #extract #swagger #operations #specification #yaml #subset

app swagstract

A tool to extract a subset of OpenAPI 3.* spec from yaml files

7 releases

0.1.6 Jul 25, 2023
0.1.5 Jul 25, 2023

#5 in #subset

Download history 3/week @ 2024-02-23 1/week @ 2024-03-01 4/week @ 2024-03-22 219/week @ 2024-03-29

223 downloads per month

MIT license

12KB
282 lines

swagstract

Description

This is a simple cli app that will extract selected operations (and related components) from a swagger file and output them to stdout. Supports OpenAPI 3.*.

Installation

Clone the repository and do cargo install . or do cargo install swagstract from crates.io.

Usage

swagstract -f <swagger file> -o <operation id> [-o <operation id> ...]

Features

  • Extracts single operation
  • Extracts multiple operations
  • Extracts related components and references

Dependencies

~4MB
~78K SLoC