Skip to content

Conversation

@makeev-pavel
Copy link
Collaborator

Copied from #39 (comment)

Root cause: ctx.mergeKey is a part of cached diffEntry, but somehow is not a part of the diffUniquenessCache key.

oneOf values are compared combinatorially:

SearchRestParams vs SearchGQLParams
SearchGQLParams vs SearchRestParams
SearchRestParams vs SearchRestParams
SearchGQLParams vs SearchGQLParams
and by the time when the problematic comparison takes place (SearchGQLParams vs SearchGQLParams), the cache is already filled with the DiffEntry with the 'argument' value and with the propertyKey that is not correct for this comparison. And this diff eventually will end up overriding the 'subscription' diff here.

@github-actions github-actions bot added the bug Something isn't working label Sep 24, 2025
@b41ex b41ex moved this to In Review in qubership-apihub Sep 25, 2025
@b41ex b41ex merged commit 8f4508a into develop Oct 2, 2025
15 checks passed
@b41ex b41ex deleted the bugfix/missing-enum-breaking-diff-in-oneOf-isolated-step-2 branch October 2, 2025 12:46
@github-project-automation github-project-automation bot moved this from In Review to In Test in qubership-apihub Oct 2, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Oct 2, 2025
@Maryna-Ko Maryna-Ko moved this from In Test to Done in qubership-apihub Oct 6, 2025
@b41ex b41ex changed the title fix: missing enum breaking diff in oneOf combiner in merged document … fix: missing enum breaking diff in oneOf combiner in merged document Oct 23, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants