X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=vendor%2Fgrasmash%2Fyaml-expander%2Ftests%2Fresources%2Fvalid.yml;fp=vendor%2Fgrasmash%2Fyaml-expander%2Ftests%2Fresources%2Fvalid.yml;h=78e4bc613b62321f5866005c3769728776995c4e;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hp=0000000000000000000000000000000000000000;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0;p=yaffs-website diff --git a/vendor/grasmash/yaml-expander/tests/resources/valid.yml b/vendor/grasmash/yaml-expander/tests/resources/valid.yml new file mode 100644 index 000000000..78e4bc613 --- /dev/null +++ b/vendor/grasmash/yaml-expander/tests/resources/valid.yml @@ -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