{"action":"opened","issue":{"url":"https://api.github.com/repos/MrTomKimber/SWIFT_analysis/issues/1","labels_url":"https://api.github.com/repos/MrTomKimber/SWIFT_analysis/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/MrTomKimber/SWIFT_analysis/issues/1/comments","events_url":"https://api.github.com/repos/MrTomKimber/SWIFT_analysis/issues/1/events","html_url":"https://github.com/MrTomKimber/SWIFT_analysis/issues/1","id":65649537,"number":1,"title":"Fold Function fails when no leaf node is present","user":{"login":"MrTomKimber","id":6141942,"avatar_url":"https://avatars.githubusercontent.com/u/6141942?v=3","gravatar_id":"","url":"https://api.github.com/users/MrTomKimber","html_url":"https://github.com/MrTomKimber","followers_url":"https://api.github.com/users/MrTomKimber/followers","following_url":"https://api.github.com/users/MrTomKimber/following{/other_user}","gists_url":"https://api.github.com/users/MrTomKimber/gists{/gist_id}","starred_url":"https://api.github.com/users/MrTomKimber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrTomKimber/subscriptions","organizations_url":"https://api.github.com/users/MrTomKimber/orgs","repos_url":"https://api.github.com/users/MrTomKimber/repos","events_url":"https://api.github.com/users/MrTomKimber/events{/privacy}","received_events_url":"https://api.github.com/users/MrTomKimber/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-01T10:02:34Z","updated_at":"2015-04-01T10:02:34Z","closed_at":null,"body":"One key function the tool provides is to 'flatten' a swift message into a csv formatted file. The flattening process requires a leaf-node identifier be provided and information not directly on that node's path on the document tree is force-merged onto the tree. \r\n\r\nThe problem arises when a message is sent that contains zero nodes matching the leaf-node identifier. \r\n\r\nIn this case, what should probably happen is an output containing the merged tree at the next possible level down, however instead, no output it generated at all.\r\n\r\nAn example might be a statement of transactions that also contains opening and closing balances. If the fold-node is identified as being at transaction-level, but a message is sent containing no transactions (only to inform of an opening and closing balance, which is quite acceptable) then no output will be generated. "}}