{"action":"created","issue":{"url":"https://api.github.com/repos/krpc/krpc/issues/395","repository_url":"https://api.github.com/repos/krpc/krpc","labels_url":"https://api.github.com/repos/krpc/krpc/issues/395/labels{/name}","comments_url":"https://api.github.com/repos/krpc/krpc/issues/395/comments","events_url":"https://api.github.com/repos/krpc/krpc/issues/395/events","html_url":"https://github.com/krpc/krpc/issues/395","id":224905297,"number":395,"title":"Specify when a call can return 'null' in .json service definition files","user":{"login":"Cahu","id":6030328,"avatar_url":"https://avatars2.githubusercontent.com/u/6030328?v=4","gravatar_id":"","url":"https://api.github.com/users/Cahu","html_url":"https://github.com/Cahu","followers_url":"https://api.github.com/users/Cahu/followers","following_url":"https://api.github.com/users/Cahu/following{/other_user}","gists_url":"https://api.github.com/users/Cahu/gists{/gist_id}","starred_url":"https://api.github.com/users/Cahu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cahu/subscriptions","organizations_url":"https://api.github.com/users/Cahu/orgs","repos_url":"https://api.github.com/users/Cahu/repos","events_url":"https://api.github.com/users/Cahu/events{/privacy}","received_events_url":"https://api.github.com/users/Cahu/received_events","type":"User","site_admin":false},"labels":[{"id":81326661,"url":"https://api.github.com/repos/krpc/krpc/labels/server:api","name":"server:api","color":"c2e0c6","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/krpc/krpc/milestones/19","html_url":"https://github.com/krpc/krpc/milestone/19","labels_url":"https://api.github.com/repos/krpc/krpc/milestones/19/labels","id":1740228,"number":19,"title":"0.4.0","description":"","creator":{"login":"djungelorm","id":6644613,"avatar_url":"https://avatars2.githubusercontent.com/u/6644613?v=4","gravatar_id":"","url":"https://api.github.com/users/djungelorm","html_url":"https://github.com/djungelorm","followers_url":"https://api.github.com/users/djungelorm/followers","following_url":"https://api.github.com/users/djungelorm/following{/other_user}","gists_url":"https://api.github.com/users/djungelorm/gists{/gist_id}","starred_url":"https://api.github.com/users/djungelorm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djungelorm/subscriptions","organizations_url":"https://api.github.com/users/djungelorm/orgs","repos_url":"https://api.github.com/users/djungelorm/repos","events_url":"https://api.github.com/users/djungelorm/events{/privacy}","received_events_url":"https://api.github.com/users/djungelorm/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":8,"state":"open","created_at":"2016-04-30T19:22:35Z","updated_at":"2017-08-04T14:59:54Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2017-04-27T20:35:18Z","updated_at":"2017-08-04T15:20:12Z","closed_at":null,"body":"In KRPC.SpaceCenter.json there are definitions like this where the return value can be null according to the documentation:\r\n```\r\n      \"Part_get_Fairing\": {\r\n        \"parameters\": [ { ... } ],\r\n        \"return_type\": {\r\n          \"code\": \"CLASS\",\r\n          \"service\": \"SpaceCenter\",\r\n          \"name\": \"Fairing\"\r\n        },\r\n        \"documentation\": \"<doc>\\n<summary>\\nA <see cref=\\\"T:SpaceCenter.Fairing\\\" /> if the part is a fairing, otherwise <c>null</c>.\\n</summary>\\n</doc>\"\r\n```\r\nIn order to generate the correct code for this rpc call in languages that don't have a 'null', it would be useful to have this information encoded in some way. For instance:\r\n```\r\n        \"return_type\": {\r\n          \"code\": \"CLASS\",\r\n          \"service\": \"SpaceCenter\",\r\n          \"name\": \"Fairing\",\r\n          \"optional\": true\r\n        },\r\n```"},"comment":{"url":"https://api.github.com/repos/krpc/krpc/issues/comments/320276486","html_url":"https://github.com/krpc/krpc/issues/395#issuecomment-320276486","issue_url":"https://api.github.com/repos/krpc/krpc/issues/395","id":320276486,"user":{"login":"TeWu","id":928048,"avatar_url":"https://avatars1.githubusercontent.com/u/928048?v=4","gravatar_id":"","url":"https://api.github.com/users/TeWu","html_url":"https://github.com/TeWu","followers_url":"https://api.github.com/users/TeWu/followers","following_url":"https://api.github.com/users/TeWu/following{/other_user}","gists_url":"https://api.github.com/users/TeWu/gists{/gist_id}","starred_url":"https://api.github.com/users/TeWu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeWu/subscriptions","organizations_url":"https://api.github.com/users/TeWu/orgs","repos_url":"https://api.github.com/users/TeWu/repos","events_url":"https://api.github.com/users/TeWu/events{/privacy}","received_events_url":"https://api.github.com/users/TeWu/received_events","type":"User","site_admin":false},"created_at":"2017-08-04T15:20:12Z","updated_at":"2017-08-04T15:20:12Z","body":"I'm glad you agree :smile:; and don't worry about it, it's not breaking client libraries, just making them consume a little more memory than absolutely necessary."}}
{"actor":{"display_login":"TeWu"}}