Skip to content

fix: error on scalar/map type mismatch in MergeStrict regardless of order - #424

Merged
knadh merged 1 commit into
knadh:masterfrom
upuddu:fix-strictmerge-scalar-map-asymmetry
Jul 8, 2026
Merged

fix: error on scalar/map type mismatch in MergeStrict regardless of order#424
knadh merged 1 commit into
knadh:masterfrom
upuddu:fix-strictmerge-scalar-map-asymmetry

Conversation

@upuddu

@upuddu upuddu commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

StrictMerge only reported a type mismatch when an existing map was replaced by a scalar, but silently accepted the reverse - a scalar replaced by a map - so whether a genuine conflict was caught depended on file load order. This makes the map-incoming branch return the same incorrect types at key ... error as the scalar-incoming branch.

@knadh
knadh merged commit 31dd449 into knadh:master Jul 8, 2026
4 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