delimit_semver
Classify an OpenAPI spec change into a semver bump level (MAJOR, MINOR, PATCH, or NONE) and optionally compute the next version string from a given current version.
Instructions
Classify a spec change's semver bump (MAJOR/MINOR/PATCH/NONE).
When to use: to deterministically pick the version bump for an API spec change, optionally computing the next version string. When NOT to use: for full lint with policy (use delimit_lint) or a plain change list (delimit_diff).
Sibling contrast: delimit_diff lists changes; delimit_lint adds policy; this maps the diff to a semver verdict only.
Side effects: read-only. Calls backends.gateway_core.run_semver (deterministic classification on top of the diff engine output).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| old_spec | Yes | Path to the baseline OpenAPI spec file. Required. | |
| new_spec | Yes | Path to the proposed OpenAPI spec file. Required. | |
| current_version | No | Optional version string (e.g. "1.2.3") to compute the next version. Default None = no next computed. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||