Skip to content

feat: add flatten-allof support with tests#81

Merged
reuvenharrison merged 4 commits intomainfrom
feat/flatten-allof
Mar 21, 2026
Merged

feat: add flatten-allof support with tests#81
reuvenharrison merged 4 commits intomainfrom
feat/flatten-allof

Conversation

@reuvenharrison
Copy link
Contributor

@reuvenharrison reuvenharrison commented Mar 21, 2026

Builds on #67 (Add support for flattening by @Shadowghost).

Changes

  • breaking/action.yml, changelog/action.yml, diff/action.yml: add flatten-allof input
  • breaking/entrypoint.sh, changelog/entrypoint.sh, diff/entrypoint.sh: pass --flatten-allof flag when enabled
  • specs/base-allof.yaml + specs/revision-allof.yaml: test fixtures with allOf schemas; revision makes a field required (breaking change when flattened)
  • .github/workflows/test.yaml: add oasdiff_breaking_flatten_allof job that verifies the option detects the expected breaking change
  • README.md: restructured version with flatten-allof row added to all three input tables

Test plan

  • CI passes with new oasdiff_breaking_flatten_allof test job
  • flatten-allof: true detects 1 changes: 1 error, 0 warning, 0 info against the allOf fixtures

Closes #67

🤖 Generated with Claude Code

Shadowghost and others added 4 commits December 30, 2025 20:57
- Add specs/base-allof.yaml and specs/revision-allof.yaml fixtures
- Add oasdiff_breaking_flatten_allof test to test.yaml
- Replace README with restructured version (from docs/readme-fixes) including flatten-allof rows in all three input tables

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… it optional

response-required-property-became-optional is a breaking change (ERR).
Previously had it backwards: adding required to response is not breaking.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- README: keep flatten-allof rows in all three tables
- changelog/entrypoint.sh: merge flatten_allof ($7) with template/level ($13/$14) added by main

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@reuvenharrison reuvenharrison merged commit d518b52 into main Mar 21, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants