OpenAPI Analyser

Overview

Detects changes in OpenAPI specification files.

Dependencies

PyYAML

Parse YAML-formatted OpenAPI documents

Enable/Disable

bumpwright --enable-analyser openapi
bumpwright --disable-analyser openapi
[analysers]
openapi = true

[openapi]
paths = ["openapi.yaml"]

See also

For configuration options, see concepts/configuration#analysers.

Severity Rules

Change

Bump

Added endpoint

minor

Removed endpoint

major

Added schema

minor

Removed schema

major

Changed schema definition

major

Example

@@
paths:
  /pets:
-    get: {}
+    post: {}
- [MAJOR] GET /pets: Removed endpoint
- [MINOR] POST /pets: Added endpoint