router icon indicating copy to clipboard operation
router copied to clipboard

return an error on duplicate keys in configuration

Open Geal opened this issue 3 years ago • 1 comments

when there are duplicate keys in the configuration files, serde-yaml only takes the last one. We should return an error instead. A solution is outlined here: https://github.com/dtolnay/serde-yaml/issues/150

Geal avatar Jul 21 '22 15:07 Geal

~~Is there a specific case where this happens? I checked a couple of locations and it looks like the json schema catches duplicates.~~ Found one:

telemetry:
  tracing:
    trace_config:
      attributes:
        foo: bar
        foo: bar

BrynCooke avatar Sep 12 '22 07:09 BrynCooke