Skip to content

Instantly share code, notes, and snippets.

@josher19
Created January 14, 2011 06:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josher19/779245 to your computer and use it in GitHub Desktop.
Save josher19/779245 to your computer and use it in GitHub Desktop.
working-invoice.yaml
invoice: 34843
date: "2001-01-23"
billTo: &id001
given : Chris
family : Dumars
address:
lines: [ "458 Walkman Dr.", "Suite #292"]
city : Royal Oak
state : MI
postal : 48046
shipTo: *id001
product:
-
sku : BL394D
quantity : 4
description : Basketball
price : 450.00
-
sku : BL4438H
quantity : 1
description : Super Hoop
price : 2392.00
tax : 251.42
total: 4443.52
comments:
- Late afternoon is best.
- Backup contact is Nancy
- Billsmer @ 338-4338.
@josher19
Copy link
Author

Based on: official YAML spec Full Length Example http://yaml.org/spec/1.2/spec.html#id2761803

Needed to change whitespace, dashes, and groupings to get it to work in tj/js-yaml#11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment