JSON macros fail for multi-document YAML targets
When the target of a jsonpathExpression is YAML file containing multiple documents (separated by ---) the extension fails with a WARN log message:
msg: {
"msg": "Invalid source file ...",
"error": {
"name": "YAMLParseError",
"code": "MULTIPLE_DOCS",
"message": "Source contains multiple documents; please use YAML.parseAllDocuments() at line XX, column Y: ... --- ...",
"pos": ... ,
"linePos": ... ,
},
"useId": 0,
"jsonpath": "jsonpathExpression"
}
I'd expect a multi-document yaml file to be presented as a top-level array.