Skip to content
Vegha Docs

Importing from OpenAPI

Vegha imports OpenAPI 3.x and Swagger 2.0 specifications, generating a native .bru collection with one request per operation. Imported OpenAPI collections can also be re-synced when the upstream spec changes.

Open the Import dialog with Ctrl+I and select the spec file (JSON or YAML). Choose a destination folder, and Vegha generates the collection.

OpenAPI / SwaggerVegha
Operation (path + method)A .bru request
TagsFolders grouping the requests
servers (or host + basePath)A base URL variable
Path / query / header parametersRequest parameters
Request body schemaA sample request body
securitySchemes / securityNative request or collection auth

Each operation becomes an executable request with its path, method, parameters, and a sample body derived from the schema. The first server entry is used as the base URL variable, so you can switch hosts in one place.

OpenAPI is the one importer that supports ongoing sync. When the API’s spec changes, re-import the updated file into the same destination. Instead of silently overwriting, Vegha runs drift detection and shows what changed:

  • Operations that were added — new requests to generate
  • Operations that were removed — requests no longer in the spec
  • Operations that were modified — changed parameters, bodies, or auth

Review the drift summary, then apply it to regenerate the affected requests while leaving your other edits intact.