Skip to content

Feature request: Duplicated mapper configuration #922

Open

Description

@Lure5134

It would be great if there would be a validation that no mapper configuration is duplicated.
TypeAdapterConfig.GlobalSettings.AllowDuplicatedMapperConfiguration

If the property is set to false an some mapper configuration exists multiple times an exception should be raised when the mapper configuration get's compiled.

Activity

  1. DocSvartz commented on Apr 21, 2026

    @DocSvartz
    Contributor

    Hi @Lure5134. This should be one of the first features of ConfigAnalizer.

    You can join the discussion here :

    For global configuration, this is already ready to use.
    But, as in your proposal, there will be a problem with determining the origin config.
    In your case, it depends on code execution, and on the file compilation in analyzer case :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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