Find duplicate keys instead of losing a setting
This configuration assigns region twice:
service: catalog-collector
region: us
retries: 3
region: de
The report points to line 4, column 1: “Map keys must be unique.” Remove the unwanted key or give the two values different names. Do not rely on one parser keeping the first value and another keeping the last.
A missing closing bracket, an invalid indentation level or a malformed mapping can produce a different location. Start at the first reported error, fix it and validate again; later messages may depend on the same mistake.
