Skip to content

test(spec): two union cases in the shared breaking-change vectors - #34

Merged
arosasg merged 1 commit into
mainfrom
ci/vectors-two-union-cases
Nov 8, 2026
Merged

arosasg merged 1 commit into
mainfrom
ci/vectors-two-union-cases

Conversation

@arosasg

@arosasg arosasg commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Problem

openapi/breaking-vectors.json is generated here and copied byte for byte into the other six server SDKs (docs/DESIGN.md section 3.1). The last commit of the pull request that introduced it (#26) was pushed nine minutes after #26 merged, so main kept 73 cases while sdk-node, sdk-go, sdk-java, sdk-php and sdk-dotnet copied the 75-case file from the branch. The source repository is now the one that differs.

Solution

Land that commit (3c361f6 from the #26 branch) unchanged:

  • two cases: union-required-field-no-longer-required and union-variant-numbered-with-its-null-variant;
  • their entries in codegen/breaking_vectors.py, the detector change in codegen/spec_sync.py they need, and tests.

openapi/breaking-vectors.json now has the same bytes as the other repositories (SHA-256 starts 5c9a66000f9743f9). Committed as test(spec), so it releases nothing.

Verification

  • uv run pytest codegen/tests/test_spec_sync.py: 45 passed.
  • uv run pytest codegen/tests -k "vector or breaking": 94 passed, including the generator determinism test in codegen/tests/test_breaking_vectors.py.
  • shasum -a 256 openapi/breaking-vectors.json matches sdk-node, sdk-go and sdk-java main.
  • CI runs the full suite on this pull request.

🤖 Generated with Claude Code

The last commit of the vectors pull request (#26) was pushed after it merged,
so main kept 73 cases while sdk-node, sdk-go, sdk-java, sdk-php and sdk-dotnet
copied the 75-case file from its branch. This lands that commit: the cases
union-required-field-no-longer-required and
union-variant-numbered-with-its-null-variant, the generator entries and the
detector change they need. openapi/breaking-vectors.json now has the same
bytes as the other repositories (SHA-256 5c9a66000f9743f9...).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@arosasg

arosasg commented Nov 8, 2026

Copy link
Copy Markdown
Contributor Author

Codex review (codex CLI, account codex-7, model gpt-5.6-sol)


💡 Code review

Reviewed commit: 3af88b8

No actionable findings in commit 3af88b8.

Verdict: APPROVE

@arosasg
arosasg merged commit f52ae49 into main Nov 8, 2026
15 checks passed
@arosasg
arosasg deleted the ci/vectors-two-union-cases branch November 8, 2026 11:29
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.

1 participant