openapi-convert

command
v0.0.0-...-5384736 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2026 License: MIT Imports: 13 Imported by: 0

README

openapi-convert

This utility converts a Swagger 2.0 JSON document into OpenAPI 3 output.

It writes both JSON and YAML outputs, validates the converted document, and can optionally filter paths by prefix. When path filtering is enabled, it also prunes unreferenced component schemas and unreferenced security schemes from the result.

Usage

Usage: openapi-convert [options]

Convert Swagger 2.0 JSON to OpenAPI 3 JSON and YAML.

Options:
  -description string
        override info.description in the output doc
  -in string
        path to Swagger 2.0 JSON input
  -json string
        path to OpenAPI 3 JSON output
  -path-prefix string
        if set, only include paths with this prefix
  -title string
        override info.title in the output doc
  -yaml string
        path to OpenAPI 3 YAML output

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL