Delimit Semver
delimit_semverDetermine the semver bump (MAJOR/MINOR/PATCH/NONE) from API spec changes, and optionally compute the next version string. Use it when you need a deterministic release-version decision before merging a spec change.
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 |
|---|---|---|---|
| new_spec | Yes | Path to the proposed OpenAPI spec file. Required. | |
| old_spec | Yes | Path to the baseline 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 | |||