You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
::error title=Delimit::Field id type changed from string to integer
25
-
```
22
+
> **Breaking API Changes Detected**
23
+
>
24
+
> | Severity | Change | Location |
25
+
> |----------|--------|----------|
26
+
> | Critical | Endpoint removed |`/pets/{petId}`|
27
+
> | Warning | Type changed (string → integer) |`Pet.id`|
28
+
> | Warning | Enum value removed |`Pet.status`|
29
+
>
30
+
> **Semver: MAJOR** — 5 breaking changes, migration guide included
26
31
27
-
4.On a PR, Delimit posts a comment with a migration guide
32
+
4.In enforce mode, CI fails until the breaking changes are resolved
28
33
29
-
## Fix the build
34
+
## Use Delimit in your own repo
30
35
31
-
Delete `openapi-changed.yaml` and update the workflow to compare `openapi.yaml` against itself. Or better -- edit `openapi-changed.yaml` to only add new endpoints and fields. Additive changes pass.
36
+
The simplest setup — auto-detects the base branch and diffs your spec:
32
37
33
-
## Use Delimit in your own repo
38
+
```yaml
39
+
- uses: delimit-ai/delimit-action@v1
40
+
with:
41
+
spec: api/openapi.yaml
42
+
```
43
+
44
+
Or compare two specific files:
34
45
35
46
```yaml
36
-
# .github/workflows/delimit.yml
37
47
- uses: delimit-ai/delimit-action@v1
38
48
with:
39
49
old_spec: openapi.yaml
40
-
new_spec: openapi.yaml
50
+
new_spec: openapi-changed.yaml
41
51
mode: enforce
42
52
```
43
53
44
-
Point `old_spec` at your base spec and `new_spec` at the changed version. The action detects breaking changes and posts PR comments automatically.
0 commit comments