{"action":"closed","issue":{"url":"https://api.github.com/repos/veracity/DataLineage-Viewer/issues/9","repository_url":"https://api.github.com/repos/veracity/DataLineage-Viewer","labels_url":"https://api.github.com/repos/veracity/DataLineage-Viewer/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/veracity/DataLineage-Viewer/issues/9/comments","events_url":"https://api.github.com/repos/veracity/DataLineage-Viewer/issues/9/events","html_url":"https://github.com/veracity/DataLineage-Viewer/issues/9","id":353256442,"node_id":"MDU6SXNzdWUzNTMyNTY0NDI=","number":9,"title":"Add FormatType field in JSON object that we create","user":{"login":"feng-lu-veracity","id":38126775,"node_id":"MDQ6VXNlcjM4MTI2Nzc1","avatar_url":"https://avatars0.githubusercontent.com/u/38126775?v=4","gravatar_id":"","url":"https://api.github.com/users/feng-lu-veracity","html_url":"https://github.com/feng-lu-veracity","followers_url":"https://api.github.com/users/feng-lu-veracity/followers","following_url":"https://api.github.com/users/feng-lu-veracity/following{/other_user}","gists_url":"https://api.github.com/users/feng-lu-veracity/gists{/gist_id}","starred_url":"https://api.github.com/users/feng-lu-veracity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feng-lu-veracity/subscriptions","organizations_url":"https://api.github.com/users/feng-lu-veracity/orgs","repos_url":"https://api.github.com/users/feng-lu-veracity/repos","events_url":"https://api.github.com/users/feng-lu-veracity/events{/privacy}","received_events_url":"https://api.github.com/users/feng-lu-veracity/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-23T07:26:59Z","updated_at":"2018-08-26T19:47:59Z","closed_at":"2018-08-26T19:47:58Z","author_association":"CONTRIBUTOR","body":"When we submit the data into MAM, the current json is\r\n{\r\n  \"mamAddress\": \"QKT9J...XPGLYV\",\r\n  \"nextRootAddress\": \"OTZDS...HB9WE9K\",\r\n  \"timestamp\": \"1532956645935\",\r\n  \"data\": \"20°C\",\r\n  \"signature\": \"8c20f3d24...43a6cfb7c4\",\r\n  \"dataPackageId\": \"123-456-789\",\r\n  \"inputs\": [\r\n    \"MAM_address_1\",\r\n    \"MAM_address_2\"\r\n  ],\r\n  \"ownerMetadata\": \"Veracity sensor #001\",\r\n  \"operation\": \"Integration\",\r\n  \"additionalProp1\": \"string\",\r\n  \"additionalProp2\": \"string\",\r\n  \"additionalProp3\": \"string\"\r\n}\r\n\r\nIn order to better explain the json, lets add a new field \"formatType\". This field is **mandatory**, and only can be one of these 2 values: \"lightweight\", or \"standard\"\r\n\r\nthe updated json example for \"standard\" is\r\n{\r\n  \"mamAddress\": \"QKT9J...XPGLYV\",\r\n  \"nextRootAddress\": \"OTZDS...HB9WE9K\",\r\n  \"timestamp\": \"1532956645935\",\r\n  **\"formatType\": \"standard\"\r\n  \"signature\": \"8c20f3d24...43a6cfb7c4\",**\r\n  \"dataPackageId\": \"123-456-789\",\r\n  \"inputs\": [\r\n    \"MAM_address_1\",\r\n    \"MAM_address_2\"\r\n  ],\r\n  \"ownerMetadata\": \"Veracity sensor #001\",\r\n  \"operation\": \"Integration\",\r\n  \"additionalProp1\": \"string\",\r\n  \"additionalProp2\": \"string\",\r\n  \"additionalProp3\": \"string\"\r\n}\r\n\r\nThe updated json example for \"lightweight\" is\r\n{\r\n  \"mamAddress\": \"QKT9J...XPGLYV\",\r\n  \"nextRootAddress\": \"OTZDS...HB9WE9K\",\r\n  \"timestamp\": \"1532956645935\",\r\n  **\"formatType\": \"lightweight\"**\r\n  **\"data\": \"20°C\",**\r\n  \"dataPackageId\": \"123-456-789\",\r\n  \"inputs\": [\r\n    \"MAM_address_1\",\r\n    \"MAM_address_2\"\r\n  ],\r\n  \"ownerMetadata\": \"Veracity sensor #001\",\r\n  \"operation\": \"Integration\",\r\n  \"additionalProp1\": \"string\",\r\n  \"additionalProp2\": \"string\",\r\n  \"additionalProp3\": \"string\"\r\n}"}}
{"actor":{"display_login":"feng-lu-veracity"}}