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 |
|
Removed endpoint |
|
Added schema |
|
Removed schema |
|
Changed schema definition |
|
Example¶
@@
paths:
/pets:
- get: {}
+ post: {}
- [MAJOR] GET /pets: Removed endpoint
- [MINOR] POST /pets: Added endpoint