{"action":"created","issue":{"url":"https://api.github.com/repos/baszoetekouw/janus-py/issues/4","repository_url":"https://api.github.com/repos/baszoetekouw/janus-py","labels_url":"https://api.github.com/repos/baszoetekouw/janus-py/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/baszoetekouw/janus-py/issues/4/comments","events_url":"https://api.github.com/repos/baszoetekouw/janus-py/issues/4/events","html_url":"https://github.com/baszoetekouw/janus-py/issues/4","id":104515177,"number":4,"title":"MUST be specified check too strict","user":{"login":"thijskh","id":3808792,"avatar_url":"https://avatars.githubusercontent.com/u/3808792?v=3","gravatar_id":"","url":"https://api.github.com/users/thijskh","html_url":"https://github.com/thijskh","followers_url":"https://api.github.com/users/thijskh/followers","following_url":"https://api.github.com/users/thijskh/following{/other_user}","gists_url":"https://api.github.com/users/thijskh/gists{/gist_id}","starred_url":"https://api.github.com/users/thijskh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thijskh/subscriptions","organizations_url":"https://api.github.com/users/thijskh/orgs","repos_url":"https://api.github.com/users/thijskh/repos","events_url":"https://api.github.com/users/thijskh/events{/privacy}","received_events_url":"https://api.github.com/users/thijskh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2015-09-02T16:00:39Z","updated_at":"2016-10-18T15:13:51Z","closed_at":null,"body":"The code:\r\n\r\n```python\r\n              for field in ('allowedConnection','blockedConnections','disableConsentConnections','arpAttributes','manipulationCode'):\r\n                        if not field in newentity:\r\n                                raise ServiceRegistryError(-1,\"%s MUST be specified, otherwise the API will be silently truncate it\" % field)\r\n```\r\n\r\nis too strict because it's perfectly normal for an entity to have no AM. Also, it always triggers since 'allowedConnection' misses an 's'."},"comment":{"url":"https://api.github.com/repos/baszoetekouw/janus-py/issues/comments/254539393","html_url":"https://github.com/baszoetekouw/janus-py/issues/4#issuecomment-254539393","issue_url":"https://api.github.com/repos/baszoetekouw/janus-py/issues/4","id":254539393,"user":{"login":"thijskh","id":3808792,"avatar_url":"https://avatars.githubusercontent.com/u/3808792?v=3","gravatar_id":"","url":"https://api.github.com/users/thijskh","html_url":"https://github.com/thijskh","followers_url":"https://api.github.com/users/thijskh/followers","following_url":"https://api.github.com/users/thijskh/following{/other_user}","gists_url":"https://api.github.com/users/thijskh/gists{/gist_id}","starred_url":"https://api.github.com/users/thijskh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thijskh/subscriptions","organizations_url":"https://api.github.com/users/thijskh/orgs","repos_url":"https://api.github.com/users/thijskh/repos","events_url":"https://api.github.com/users/thijskh/events{/privacy}","received_events_url":"https://api.github.com/users/thijskh/received_events","type":"User","site_admin":false},"created_at":"2016-10-18T15:13:51Z","updated_at":"2016-10-18T15:13:51Z","body":"Right, but the update() method arranges this for you properly. Most entities will not have any manipulationcode so this will fail.\r\n\r\nI use update like this:\r\n```\r\nnewfield['metadata']['example'] = 25\r\nsr.update(eid, newfield,note=\"Zet op 25\")\r\n```\r\nThis always fails for entities without current manipulationCode and there's no way to override it, while this option does seem safe to execute."}}
{"actor":{"display_login":"thijskh"}}