mirror of
https://github.com/mikefarah/yq.git
synced 2026-07-06 04:45:39 +00:00
wip
This commit is contained in:
parent
8fef31b417
commit
54f5c9ee2f
@ -147,6 +147,32 @@ var propertyScenarios = []formatScenario{
|
|||||||
expected: expectedDecodedYaml,
|
expected: expectedDecodedYaml,
|
||||||
scenarioType: "decode",
|
scenarioType: "decode",
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
skipDoc: true,
|
||||||
|
description: "Decode properties - keeps key information",
|
||||||
|
input: expectedPropertiesUnwrapped,
|
||||||
|
expression: ".person.name | key",
|
||||||
|
expected: "name",
|
||||||
|
scenarioType: "decode",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
skipDoc: true,
|
||||||
|
description: "Decode properties - keeps parent information",
|
||||||
|
input: expectedPropertiesUnwrapped,
|
||||||
|
expression: ".person.name | parent",
|
||||||
|
expected: "name",
|
||||||
|
scenarioType: "decode",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
skipDoc: true,
|
||||||
|
description: "Decode properties - keeps path information",
|
||||||
|
input: expectedPropertiesUnwrapped,
|
||||||
|
expression: ".person.name | path",
|
||||||
|
expected: "name",
|
||||||
|
scenarioType: "decode",
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
description: "Decode properties - array should be a map",
|
description: "Decode properties - array should be a map",
|
||||||
subdescription: "If you have a numeric map key in your property files, use array_to_map to convert them to maps.",
|
subdescription: "If you have a numeric map key in your property files, use array_to_map to convert them to maps.",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user