diff tests/data/duplicate-keys-2.yml @ 292:6a044778371a

Some unittests for the new "strict" YAML parsing mode to prevent duplicate keys within a single YAML document
author Franz Glasner <f.glasner@feldmann-mg.com>
date Wed, 10 Feb 2021 15:04:27 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/data/duplicate-keys-2.yml	Wed Feb 10 15:04:27 2021 +0100
@@ -0,0 +1,13 @@
+# -*- coding: utf-8; mode: yaml; indent-tabs-mode: nil; -*-
+
+# a subordinate duplicate key
+
+%YAML 1.1
+---
+
+toplevel-key:
+  subkey1: the value
+
+  subkey2: 2nd value
+
+  subkey1: not allowed