--- %YAML:1.0
test: Compact notation
brief: |
Compact notation for sets of mappings with single element
yaml: |
---
# products purchased
- item : Super Hoop
- item : Basketball
quantity: 1
- item:
name: Big Shoes
nick: Biggies
quantity: 1
php: |
array (
array (
'item' => 'Super Hoop',
),
array (
'item' => 'Basketball',
'quantity' => 1,
),
array (
'item' => array(
'name' => 'Big Shoes',
'nick' => 'Biggies'
),
'quantity' => 1
)
)
---
test: Compact notation combined with inline notation
brief: |
Combinations of compact and inline notation are allowed
yaml: |
---
items:
- { item: Super Hoop, quantity: 1 }
- [ Basketball, Big Shoes ]
php: |
array (
'items' => array (
array (
'item' => 'Super Hoop',
'quantity' => 1,
),
array (
'Basketball',
'Big Shoes'
)
)
)
--- %YAML:1.0
test: Compact notation
brief: |
Compact notation for sets of mappings with single element
yaml: |
---
# products purchased
- item : Super Hoop
- item : Basketball
quantity: 1
- item:
name: Big Shoes
nick: Biggies
quantity: 1
php: |
array (
array (
'item' => 'Super Hoop',
),
array (
'item' => 'Basketball',
'quantity' => 1,
),
array (
'item' => array(
'name' => 'Big Shoes',
'nick' => 'Biggies'
),
'quantity' => 1
)
)
---
test: Compact notation combined with inline notation
brief: |
Combinations of compact and inline notation are allowed
yaml: |
---
items:
- { item: Super Hoop, quantity: 1 }
- [ Basketball, Big Shoes ]
php: |
array (
'items' => array (
array (
'item' => 'Super Hoop',
'quantity' => 1,
),
array (
'Basketball',
'Big Shoes'
)
)
)
--- %YAML:1.0
test: Compact notation
brief: |
Compact notation for sets of mappings with single element
yaml: |
---
# products purchased
- item : Super Hoop
- item : Basketball
quantity: 1
- item:
name: Big Shoes
nick: Biggies
quantity: 1
php: |
array (
array (
'item' => 'Super Hoop',
),
array (
'item' => 'Basketball',
'quantity' => 1,
),
array (
'item' => array(
'name' => 'Big Shoes',
'nick' => 'Biggies'
),
'quantity' => 1
)
)
---
test: Compact notation combined with inline notation
brief: |
Combinations of compact and inline notation are allowed
yaml: |
---
items:
- { item: Super Hoop, quantity: 1 }
- [ Basketball, Big Shoes ]
php: |
array (
'items' => array (
array (
'item' => 'Super Hoop',
'quantity' => 1,
),
array (
'Basketball',
'Big Shoes'
)
)
)
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| YtsAnchorAlias.yml | File | 859 B | 0644 |
|
| YtsBasicTests.yml | File | 3.74 KB | 0644 |
|
| YtsBlockMapping.yml | File | 919 B | 0644 |
|
| YtsDocumentSeparator.yml | File | 1.49 KB | 0644 |
|
| YtsErrorTests.yml | File | 625 B | 0644 |
|
| YtsFlowCollections.yml | File | 1.59 KB | 0644 |
|
| YtsFoldedScalars.yml | File | 3.87 KB | 0644 |
|
| YtsNullsAndEmpties.yml | File | 683 B | 0644 |
|
| YtsSpecificationExamples.yml | File | 40.55 KB | 0644 |
|
| YtsTypeTransfers.yml | File | 6.72 KB | 0644 |
|
| embededPhp.yml | File | 31 B | 0644 |
|
| escapedCharacters.yml | File | 1.99 KB | 0644 |
|
| index.yml | File | 312 B | 0644 |
|
| sfComments.yml | File | 1.33 KB | 0644 |
|
| sfCompact.yml | File | 2.83 KB | 0644 |
|
| sfMergeKey.yml | File | 1.07 KB | 0644 |
|
| sfObjects.yml | File | 284 B | 0644 |
|
| sfQuotes.yml | File | 741 B | 0644 |
|
| sfTests.yml | File | 2.24 KB | 0644 |
|
| unindentedCollections.yml | File | 1.29 KB | 0644 |
|