4 stable releases

1.2.1 Jan 31, 2024
1.2.0 Nov 30, 2023
1.1.1 Nov 21, 2023
1.1.0 Sep 13, 2023

#11 in #postman

Download history 45/week @ 2024-06-28 24/week @ 2024-07-05 22/week @ 2024-07-12 12/week @ 2024-07-19 17/week @ 2024-07-26 23/week @ 2024-08-02 29/week @ 2024-08-09 11/week @ 2024-08-16 18/week @ 2024-08-23 23/week @ 2024-08-30 29/week @ 2024-09-06 16/week @ 2024-09-13 32/week @ 2024-09-20 11/week @ 2024-09-27 17/week @ 2024-10-04 20/week @ 2024-10-11

83 downloads per month

Apache-2.0

190KB
3K SLoC

postman2openapi-cli

Convert Postman collections to OpenAPI definitions.

Installation

Archives of precompiled binaries for postman2openapi are available for Windows, macOS and Linux.

Linux binaries are static executables. Windows binaries are available either as built with MinGW (GNU) or with Microsoft Visual C++ (MSVC). When possible, prefer MSVC over GNU, but you'll need to have the Microsoft VC++ 2015 redistributable installed.

For Rust developers, installation is also available via Cargo. Installing Rust and Cargo

To install the latest published version on crates.io, use:

cargo install postman2openapi-cli

To install from the latest on GitHub, use:

cargo install --git https://github.com/kevinswiber/postman2openapi postman2openapi-cli

Usage

USAGE:
    postman2openapi [OPTIONS] [input-file]

ARGS:
    <input-file>    The Postman collection to convert; data may also come from stdin

OPTIONS:
    -f, --output-format <format>    The output format [default: yaml] [possible values: yaml, json]
    -h, --help                      Print help information
    -V, --version                   Print version information

Examples

postman2openapi collection.json > openapi.yaml
cat collection.json | postman2openapi -f json

License

Apache License 2.0 (Apache-2.0)

Dependencies

~5.5–9.5MB
~163K SLoC