{"action":"opened","issue":{"url":"https://api.github.com/repos/castorjs/node-jbj/issues/7","labels_url":"https://api.github.com/repos/castorjs/node-jbj/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/castorjs/node-jbj/issues/7/comments","events_url":"https://api.github.com/repos/castorjs/node-jbj/issues/7/events","html_url":"https://github.com/castorjs/node-jbj/issues/7","id":63684441,"number":7,"title":"Assert seems to lose context","user":{"login":"parmentf","id":595509,"avatar_url":"https://avatars.githubusercontent.com/u/595509?v=3","gravatar_id":"","url":"https://api.github.com/users/parmentf","html_url":"https://github.com/parmentf","followers_url":"https://api.github.com/users/parmentf/followers","following_url":"https://api.github.com/users/parmentf/following{/other_user}","gists_url":"https://api.github.com/users/parmentf/gists{/gist_id}","starred_url":"https://api.github.com/users/parmentf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parmentf/subscriptions","organizations_url":"https://api.github.com/users/parmentf/orgs","repos_url":"https://api.github.com/users/parmentf/repos","events_url":"https://api.github.com/users/parmentf/events{/privacy}","received_events_url":"https://api.github.com/users/parmentf/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/castorjs/node-jbj/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-23T10:08:18Z","updated_at":"2015-03-23T10:08:18Z","closed_at":null,"body":"After a assert on a true value, already created preoperties are no more accessible.\r\n\r\nEx:\r\ninput:\r\n\r\n```json\r\n{\r\n\"content\":\r\n{\r\n    \"json\": \r\n    {\r\n        \"doi\": \"10.1007/1-4020-2365-0_11\"\r\n    }\r\n}\r\n}\r\n```\r\n\r\nstylesheet:\r\n\r\n```json\r\n{\r\n  \"$doi\": {\r\n    \"visible\": true,\r\n    \"label\": \"doi\",\r\n    \"path\": \"content.json.doi\",\r\n    \"default\":\"0\"\r\n  },\r\n  \"$doiurl\": {\r\n    \"visible\": true,\r\n    \"label\": \"doiurl\",\r\n    \"assert\": \"doi!=0\",\r\n    \"get\": \"doi\",\r\n    \"prepend\": \"http://dx.doi.org/\"\r\n  }\r\n}\r\n```\r\n\r\noutput:\r\n\r\n```json\r\n{\r\n  \"content\": {\r\n    \"json\": {\r\n      \"doi\": \"10.1007/1-4020-2365-0_11\"\r\n    }\r\n  },\r\n  \"doi\": \"10.1007/1-4020-2365-0_11\",\r\n  \"doiurl\": \"http://dx.doi.org/undefined\"\r\n}\r\n```\r\n\r\nWhere `doiurl` should not contain `undefined` but the value of `doi`.\r\n\r\nWhen you remove the `assert` part of the stylesheet, `prepend` works as intented."}}