From aaa58f760ca6f456aa4c5111902d3966bb9ec8ba Mon Sep 17 00:00:00 2001 From: Frerk Saxen Date: Tue, 18 Jul 2023 12:09:45 +0200 Subject: [PATCH] docs: explain check-yaml feature that allows key duplicates. --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 1ebba89..6b6cd61 100644 --- a/README.md +++ b/README.md @@ -86,6 +86,10 @@ Attempts to load all yaml files to verify syntax. otherwise be forbidden. Using this option removes all guarantees of portability to other yaml implementations. Implies `--allow-multiple-documents`. + - `--allow_duplicate_keys` - Use this parameter to allow duplicate keys in yaml files. + In JSON mapping keys should be unique, in YAML they must be unique. + PyYAML never enforced this although the YAML 1.1 specification already required this. + Duplicate keys in mappings are no longer allowed by default. #### `debug-statements` Check for debugger imports and py37+ `breakpoint()` calls in python source.