Chronicle wire supports a subset of the features available from the YAML 2 specification. This section lists those features and suggests other ways in Chronicle Wire to define the same thing.
The list below lists the features of the specification that are implemented in Chronicle Wire.
Note
|
The numbers refer to the section in the YAML 2 specification. See http://yaml.org/spec/1.2/spec.html for more information. |
Feature |
Strict YAML Specification Compliance |
Equivalent Operations in Chronicle Wire |
Section 2_1, |
Yes |
|
Section 2_2, |
Yes |
|
Section 2_3, |
Yes |
|
Section 2_4, |
No |
|
Section 2_5, |
Yes |
|
Section 2_6, |
Yes |
|
Section 2_7, |
No |
|
Section 2_8, |
No |
|
Section 2_9, |
No |
|
Section 2_10, |
No |
|
Section 2_11, |
No |
|
Section 2_12, |
No |
|
Section 2_13, |
No |
|
Section 2_14, |
No |
|
Section 2_15, |
No |
|
Section 2_16, |
No |
|
Section 2_17, |
No |
|
Section 2_18, |
No |
|
Section 2_19, |
Yes |
|
Section 2_20, |
Yes |
|
Section 2_21, |
No |
|
Section 2_22, |
Yes |
|
Section 2_23, |
No |
|
Section 2_24, |
No |
|
Section 2_25, |
No |
|
Section 2_26, |
No |
|
Section 2_27, |
No |
|
Section 2_28, |
No |
The section numbering below reflects that of the fix specification - see http://yaml.org/spec/1.2/spec.html
- name: Mark McGwire hr: 65 avg: 0.278 - name: Sammy Sosa hr: 63 avg: 0.288
[ { name: Mark McGwire, hr: 65, avg: 0.278 }, { name: Sammy Sosa, hr: 63, avg: 0.288 } ]
# Ranking of 1998 home runs --- - Mark McGwire - Sammy Sosa - Ken Griffey # Team ranking --- - Chicago Cubs - St Louis Cardinals
[ # Ranking of 1998 home runs - Mark McGwire - Sammy Sosa - Ken Griffey , # Team ranking - Chicago Cubs - St Louis Cardinals ]
---
time: 20:03:20
player: Sammy Sosa
action: strike (miss)
...
---
time: 20:03:47
player: Sammy Sosa
action: grand slam
...
[ { time: 20:03:20 player: Sammy Sosa action: strike (miss) }, { time: 20:03:47 player: Sammy Sosa action: grand slam } ]
--- hr: # 1998 hr ranking - Mark McGwire - Sammy Sosa rbi: # 1998 rbi ranking - Sammy Sosa - Ken Griffey
hr: # 1998 hr ranking - Mark McGwire - Sammy Sosa rbi: # 1998 rbi ranking - Sammy Sosa - Ken Griffey
---
# Products purchased
- item : Super Hoop
quantity: 1
- item : Basketball
quantity: 4
- item : Big Shoes
quantity: 1
# Products purchased
- {item: Super Hoop,
quantity: 1}
- {item: Basketball,
quantity: 4}
- {item: Big Shoes,
quantity: 1}
--- >
Mark McGwire's
year was crippled
by a knee injury.
[Mark McGwire's
year was crippled
by a knee injury.]
name: Mark McGwire
accomplishment: >
Mark set a major league
home run record in 1998.
stats: |
65 Home Runs
0.278 Batting Average
name: Mark McGwire
accomplishment:
Mark set a major league home run record in 1998.
stats:
- 65 Home Runs,
- 0.278 Batting Average
unicode: "Sosa did fine.\u263A"
control: "\b1998\t1999\t2000\n"
hex esc: "\x0d\x0a is \r\n"
single: '"Howdy!" he cried.'
quoted: ' # Not a ''comment''.'
tie-fighter: '|\-*-/|'
unicode: "Sosa did fine.\u263A"
control: "\b1998\t1999\t2000\n"
hex esc: "\x0d\x0a is \r\n"
single: "Howdy! he cried.",
quoted: " # Not a ''comment''."
tie-fighter: '|\-*-/|'
plain:
This unquoted scalar
spans many lines.
quoted: "So does this
quoted scalar.\n"
plain: "
This unquoted scalar
spans many lines."
quoted: "So does this
quoted scalar.\n"
null:
booleans: [ true, false ]
string: '012345'
{
null: ,
booleans: [ true, false ],
string: '012345'
}