valid.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. # This file should contain only valid YAML.
  2. type: book
  3. book:
  4. title: Dune
  5. author: Frank Herbert
  6. copyright: ${book.author} 1965
  7. protaganist: ${characters.0.name}
  8. media:
  9. - hardcover
  10. # Use a nested key to reference an external value.
  11. nested-reference: ${book.sequel}
  12. characters:
  13. - name: Paul Atreides
  14. occupation: Kwisatz Haderach
  15. aliases:
  16. - Usul
  17. - Muad'Dib
  18. - The Preacher
  19. - name: Duncan Idaho
  20. occupation: Swordmaster
  21. summary: ${book.title} by ${book.author}
  22. # This is a complete fake property.
  23. publisher: ${not.real.property}
  24. # series.books is not defined in this YAML file, but is passed in to the parser by the application.
  25. sequels: ${book.sequel}, and others.
  26. # Reference one real value and one fake value.
  27. available-products: ${book.media.1}, ${book.media.0}
  28. # Nested property, should resolve to ${book.title} and then 'Dune'.
  29. product-name: ${${type}.title}
  30. # Represent a few more data types and formats.
  31. boolean-value: true
  32. null-value: null
  33. inline-array: [ one, two, three ]
  34. expand-array: ${inline-array}
  35. env-test: ${env.test}