{"action":"created","issue":{"url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/2175","repository_url":"https://api.github.com/repos/telefonicaid/fiware-orion","labels_url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/2175/labels{/name}","comments_url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/2175/comments","events_url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/2175/events","html_url":"https://github.com/telefonicaid/fiware-orion/issues/2175","id":156290280,"number":2175,"title":"inconsistent behaviour when asking for a value","user":{"login":"jmcanterafonseca","id":694782,"avatar_url":"https://avatars.githubusercontent.com/u/694782?v=3","gravatar_id":"","url":"https://api.github.com/users/jmcanterafonseca","html_url":"https://github.com/jmcanterafonseca","followers_url":"https://api.github.com/users/jmcanterafonseca/followers","following_url":"https://api.github.com/users/jmcanterafonseca/following{/other_user}","gists_url":"https://api.github.com/users/jmcanterafonseca/gists{/gist_id}","starred_url":"https://api.github.com/users/jmcanterafonseca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmcanterafonseca/subscriptions","organizations_url":"https://api.github.com/users/jmcanterafonseca/orgs","repos_url":"https://api.github.com/users/jmcanterafonseca/repos","events_url":"https://api.github.com/users/jmcanterafonseca/events{/privacy}","received_events_url":"https://api.github.com/users/jmcanterafonseca/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/telefonicaid/fiware-orion/labels/APIv2","name":"APIv2","color":"5319e7"},{"url":"https://api.github.com/repos/telefonicaid/fiware-orion/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-05-23T14:11:10Z","updated_at":"2016-07-01T07:18:23Z","closed_at":null,"body":"let entity be\r\n\r\n```json\r\n{\r\n  \"id\": \"d7fafe27f0416d9ee89ebd2ab42baaddc746fa47\",\r\n  \"type\": \"Restaurant\",\r\n  \"address\": {\r\n    \"type\": \"PostalAddress\",\r\n    \"value\": {\r\n      \"streetAddress\": \"Zarate Bidea\",\r\n      \"addressRegion\": \"Gipuzkoa\",\r\n      \"addressLocality\": \"Zizurkil\",\r\n      \"postalCode\": \"20159\"\r\n    },\r\n    \"metadata\": {}\r\n  },\r\n  \"capacity\": {\r\n    \"type\": \"PropertyValue\",\r\n    \"value\": 200,\r\n    \"metadata\": {}\r\n  }\r\n}\r\n````\r\n\r\nif I run http://192.168.59.103:1026/v2/entities/d7fafe27f0416d9ee89ebd2ab42baaddc746fa47/attrs/capacity/value\r\n\r\nresponse is \r\n\r\n```json\r\n{\r\n  \"error\": \"NotAcceptable\",\r\n  \"description\": \"accepted MIME types: text/plain\"\r\n}\r\n````\r\nbut if I run \r\n\r\nhttp://192.168.59.103:1026/v2/entities/d7fafe27f0416d9ee89ebd2ab42baaddc746fa47/attrs/address/value\r\n\r\nresponse is\r\n\r\n```json\r\n{\r\n  \"streetAddress\": \"Zarate Bidea\",\r\n  \"addressRegion\": \"Gipuzkoa\",\r\n  \"addressLocality\": \"Zizurkil\",\r\n  \"postalCode\": \"20159\"\r\n}\r\n````\r\n\r\nin the first case response should be \r\n\r\n```json\r\n{\r\n   \"value\": 200\r\n}\r\n````"},"comment":{"url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/comments/229873879","html_url":"https://github.com/telefonicaid/fiware-orion/issues/2175#issuecomment-229873879","issue_url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/2175","id":229873879,"user":{"login":"kzangeli","id":5338380,"avatar_url":"https://avatars.githubusercontent.com/u/5338380?v=3","gravatar_id":"","url":"https://api.github.com/users/kzangeli","html_url":"https://github.com/kzangeli","followers_url":"https://api.github.com/users/kzangeli/followers","following_url":"https://api.github.com/users/kzangeli/following{/other_user}","gists_url":"https://api.github.com/users/kzangeli/gists{/gist_id}","starred_url":"https://api.github.com/users/kzangeli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kzangeli/subscriptions","organizations_url":"https://api.github.com/users/kzangeli/orgs","repos_url":"https://api.github.com/users/kzangeli/repos","events_url":"https://api.github.com/users/kzangeli/events{/privacy}","received_events_url":"https://api.github.com/users/kzangeli/received_events","type":"User","site_admin":false},"created_at":"2016-07-01T07:18:23Z","updated_at":"2016-07-01T07:18:23Z","body":"This bug is being fixed in a current branch, PR soon to be sent.\r\nHowever, the spec says only compound values can retuen JSON. In the case of String, Number Bool, and Null, only text/plain is accepted."}}
{"actor":{"display_login":"kzangeli"}}