Skip to content

Commit d8ed012

Browse files
docs: clarify that breaking/changelog/summary inherit diff behavior
A reader landing on BREAKING-CHANGES.md or CHANGELOG content has no signal that the flags and concepts in DIFF.md (extension tracking, path matching, allOf flattening, path-prefix handling, header case, --allow-external-refs, --fail-on-diff) apply to those commands too. They do — breaking/changelog/summary all run on the same diff engine. Adds: - Top-of-file note in DIFF.md saying most concepts apply to the other three commands and exceptions are called out inline - Top-of-file note in BREAKING-CHANGES.md pointing readers to DIFF.md for the shared flag set - Inline scoping note on --exclude-elements ("currently available on diff and summary") so the section remains accurate without baking in a permanent design claim Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 5b2a730 commit d8ed012

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

docs/BREAKING-CHANGES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ The `oasdiff breaking` command displays the breaking changes between OpenAPI spe
44
The `oasdiff changelog` command displays all significant changes between OpenAPI specifications, including breaking and non-breaking changes.
55
These commands are typically used in the CI to report or prevent breaking changes.
66

7+
> **Note:** `breaking` and `changelog` run on the diff engine described in [DIFF.md](DIFF.md). The flags and concepts there — extension tracking, path matching, `allOf` flattening, the path-prefix family, header case, `--allow-external-refs`, `--fail-on-diff` — apply here too, in addition to the breaking-specific options below.
8+
79
### Example: display breaking changes
810
```
911
oasdiff breaking https://raw.githubusercontent.com/oasdiff/oasdiff/main/data/openapi-test1.yaml https://raw.githubusercontent.com/oasdiff/oasdiff/main/data/openapi-test3.yaml

docs/DIFF.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ The `oasdiff diff` command displays the diff between OpenAPI specs.
33
Output is fully detailed, typically in yaml or json but also available in text, markdown and html formats.
44
This commmand is typically used to generate a structured diff report which can be consumed by other tools but it can also be viewed by humans.
55

6+
> **Note:** `summary`, `breaking`, and `changelog` are built on the same diff engine. Most concepts and flags described here apply to those commands too. Exceptions are called out inline.
7+
68
### Output Formats
79
The default diff output format is `yaml`.
810
Additional formats can be generated using the `--format` flag:
@@ -84,6 +86,8 @@ endpoints:
8486
```
8587
8688
### Excluding Specific Kinds of Changes
89+
Currently available on `diff` and `summary`.
90+
8791
You can use the `--exclude-elements` flag with to exclude one or more of the following:
8892
- Use `--exclude-elements examples` to exclude [Examples](https://swagger.io/specification/#example-object)
8993
- Use `--exclude-elements extensions` to exclude [Extensions](https://swagger.io/specification/#specification-extensions)

0 commit comments

Comments
 (0)