diff tests/data/duplicate-keys.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.yml	Wed Feb 10 15:04:27 2021 +0100
@@ -0,0 +1,15 @@
+# -*- coding: utf-8; mode: yaml; indent-tabs-mode: nil; -*-
+
+# A top-level duplicate
+
+%YAML 1.1
+---
+
+top:
+  subkey1: the value
+
+other:
+  key2: another value
+
+top:
+  subkey2: the value