Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Throw for greedy RegisterFileConverter<object>#1775

Merged
SimonCropp merged 1 commit into
mainfrom
Throw-for-greedy-RegisterFileConverter-object-
Jul 6, 2026
Merged

Throw for greedy RegisterFileConverter<object>#1775
SimonCropp merged 1 commit into
mainfrom
Throw-for-greedy-RegisterFileConverter-object-

Conversation

@SimonCropp

Copy link
Copy Markdown
Member

RegisterFileConverter matches every verified value via the default target is T canConvert, silently hijacking all serialization. Guard the generic overloads and point users to a concrete type or the non-generic overload that requires an explicit canConvert.

Fixes #1656

RegisterFileConverter<object> matches every verified value via the
default `target is T` canConvert, silently hijacking all serialization.
Guard the generic overloads and point users to a concrete type or the
non-generic overload that requires an explicit canConvert.

Fixes #1656
@SimonCropp SimonCropp added this to the 31.21.0 milestone Jul 6, 2026
@SimonCropp SimonCropp merged commit aefcdb1 into main Jul 6, 2026
6 of 7 checks passed
@SimonCropp SimonCropp deleted the Throw-for-greedy-RegisterFileConverter-object- branch July 6, 2026 23:29
This was referenced Jul 6, 2026
This was referenced Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

throw for greedy RegisterFileConverter

1 participant