Rename

Change the title of your OpenAPI document — useful in CI/CD pipelines to create distinct output variants.

Try renaming in the Playground

CLI Usage

Terminal
npx openapi-format openapi.json -o openapi.json --rename "OpenAPI Petstore - OpenAPI 3.0"

Example

Before
{
  "openapi": "3.0.2",
  "info": {
    "title": "Petstore - OpenAPI 3.0"
  }
}
After
{
  "openapi": "3.0.2",
  "info": {
    "title": "OpenAPI Petstore - OpenAPI 3.0"
  }
}