Skip to content

Option to log duplicate keys #1

@fugerit79

Description

@fugerit79

Hello, thanks for the great work on snakeyaml project.

I’ve been using either direcly on maby of the projects I work and indirecly (for instance smallrye-config).

In some of the teams I partecipate, sometimes some not very disciplined developer entered some duplicate keys in yaml configurations.

As far as I understand, right now SnakeYAML has an all or nothing approach to duplicate keys (using LoadOpttions.isAllowDuplicateKeys()): either an exception is thrown or they are totally ignored.

What about adding something like a isWarnOnDuplicateKeys() option to log duplicate keys?

quarkus:
  banner:
    enabled: false
  banner:
    enabled: true

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions