Registry Mirror
Skip to content

Conversation

@anthony-swirldslabs

Copy link
Copy Markdown
Contributor

Description:
A small follow-up for #954 . We realized we also don't support duplicate oneOf messages for the same performance reasons. So we want to extend the check.

Related issue(s):

Fixes #955

Notes for reviewer:
All tests should pass. The generated codecs were examined manually, and for example the test model OneOfWithReversedFieldNumberOrder includes the updated if condition.

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

Signed-off-by: Anthony Petrov <anthony@swirldslabs.com>
@anthony-swirldslabs anthony-swirldslabs self-assigned this Sep 25, 2026
@anthony-swirldslabs
anthony-swirldslabs requested review from a team as code owners September 25, 2026 23:11
@anthony-swirldslabs anthony-swirldslabs linked an issue Sep 25, 2026 that may be closed by this pull request
@github-actions

github-actions Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

JUnit Test Report

   521 files  ±0     521 suites  ±0   30s ⏱️ ±0s
 1 537 tests ±0   1 533 ✅ ±0   4 💤 ±0  0 ❌ ±0 
10 755 runs  ±0  10 727 ✅ ±0  28 💤 ±0  0 ❌ ±0 

Results for commit 13ba036. ± Comparison against base commit aec5c3a.

♻️ This comment has been updated with latest results.

Signed-off-by: Anthony Petrov <anthony@swirldslabs.com>

@xin-hedera xin-hedera left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-actions

Copy link
Copy Markdown

Integration Test Report

    428 files  ±0      428 suites  ±0   19m 48s ⏱️ + 3m 22s
115 048 tests ±0  115 048 ✅ ±0  0 💤 ±0  0 ❌ ±0 
115 292 runs  ±0  115 292 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 13ba036. ± Comparison against base commit aec5c3a.

@anthony-swirldslabs
anthony-swirldslabs merged commit b1adbdf into release/0.15 Sep 25, 2026
15 checks passed
@anthony-swirldslabs
anthony-swirldslabs deleted the 955-throwOnDuplicateOneOfMsg branch September 25, 2026 23:25
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.

Don't support duplicate oneOf messages

3 participants