Skip to content

Question: Why the changed defaults in v9? #842

@Ergamon

Description

@Ergamon

I spend hours hunting the "nullable" problem if 7.4.0.

I solved it for now by upgrading to the 9.0.0-pre01.

Sadly this broke my code as the defaults are now different.

Is there any reason for this?

I could make it work again by writing the following code:

    TypeAdapterConfig.GlobalSettings.Default
      .NameMatchingStrategy(NameMatchingStrategy.IgnoreCase)
      .MapToConstructor(true);

So I am curious whats the reasoning behind this change?

And if you dont want to revert back to the old defaults, can there be an easier system to change these defaults?

Having to find a central place for this in every project and every unit test project feels painful.

I would suggest to have some kind of AssemblyAttributes for these configurations, this would allow to set them centrally in Directory.Build.props

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions