Skip to content

Instantly share code, notes, and snippets.

@busti
Created January 3, 2017 19:03
Show Gist options
  • Save busti/fea360e513c0d049823458a90c7d7d54 to your computer and use it in GitHub Desktop.
Save busti/fea360e513c0d049823458a90c7d7d54 to your computer and use it in GitHub Desktop.
Mockup yaml document containing some recursive Data.
%YAML 1.1
%TAG ! tag:lorem.org,2002:
---
config:
version: 1.7.2
foo: test
bar: true
foo:
#Every String value within this map should be parsed into a custom Object of type foo.bar.ClassName
#Other types of data will not be parsed.
#Recursive data can be denoted with a custom Tag.
#Scalars containing content other than strings should not be parsed into foo.bar.ClassName
lorem: Some string for testing
ipsum: Some other string for testing
dolor: !customTagX
some: Another string here
more: And another
keys: !customTagX
even: More strings
more: Even More nested content
here: More Data here
sit: !customTagX
string-data: String Data
number-data: 13.7 #Will become a double number by default
boolean-data: false #Will become a boolean by default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment