Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / grasmash / yaml-expander / tests / resources / valid.yml
diff --git a/vendor/grasmash/yaml-expander/tests/resources/valid.yml b/vendor/grasmash/yaml-expander/tests/resources/valid.yml
new file mode 100644 (file)
index 0000000..78e4bc6
--- /dev/null
@@ -0,0 +1,35 @@
+# This file should contain only valid YAML.
+type: book
+book:
+  title: Dune
+  author: Frank Herbert
+  copyright: ${book.author} 1965
+  protaganist: ${characters.0.name}
+  media:
+    - hardcover
+  # Use a nested key to reference an external value.
+  nested-reference: ${book.sequel}
+characters:
+  - name: Paul Atreides
+    occupation: Kwisatz Haderach
+    aliases:
+      - Usul
+      - Muad'Dib
+      - The Preacher
+  - name: Duncan Idaho
+    occupation: Swordmaster
+summary: ${book.title} by ${book.author}
+# This is a complete fake property.
+publisher: ${not.real.property}
+# series.books is not defined in this YAML file, but is passed in to the parser by the application.
+sequels: ${book.sequel}, and others.
+# Reference one real value and one fake value.
+available-products: ${book.media.1}, ${book.media.0}
+# Nested property, should resolve to ${book.title} and then 'Dune'.
+product-name: ${${type}.title}
+# Represent a few more data types and formats.
+boolean-value: true
+null-value: null
+inline-array: [ one, two, three ]
+expand-array: ${inline-array}
+env-test: ${env.test}
\ No newline at end of file