{"action":"created","issue":{"url":"https://api.github.com/repos/bit-foundation/bit-framework/issues/12","repository_url":"https://api.github.com/repos/bit-foundation/bit-framework","labels_url":"https://api.github.com/repos/bit-foundation/bit-framework/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/bit-foundation/bit-framework/issues/12/comments","events_url":"https://api.github.com/repos/bit-foundation/bit-framework/issues/12/events","html_url":"https://github.com/bit-foundation/bit-framework/issues/12","id":196371890,"number":12,"title":"OData operation configuration's optional parameter is not working properly ","user":{"login":"Alikhll","id":17675690,"avatar_url":"https://avatars.githubusercontent.com/u/17675690?v=3","gravatar_id":"","url":"https://api.github.com/users/Alikhll","html_url":"https://github.com/Alikhll","followers_url":"https://api.github.com/users/Alikhll/followers","following_url":"https://api.github.com/users/Alikhll/following{/other_user}","gists_url":"https://api.github.com/users/Alikhll/gists{/gist_id}","starred_url":"https://api.github.com/users/Alikhll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alikhll/subscriptions","organizations_url":"https://api.github.com/users/Alikhll/orgs","repos_url":"https://api.github.com/users/Alikhll/repos","events_url":"https://api.github.com/users/Alikhll/events{/privacy}","received_events_url":"https://api.github.com/users/Alikhll/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"Alikhll","id":17675690,"avatar_url":"https://avatars.githubusercontent.com/u/17675690?v=3","gravatar_id":"","url":"https://api.github.com/users/Alikhll","html_url":"https://github.com/Alikhll","followers_url":"https://api.github.com/users/Alikhll/followers","following_url":"https://api.github.com/users/Alikhll/following{/other_user}","gists_url":"https://api.github.com/users/Alikhll/gists{/gist_id}","starred_url":"https://api.github.com/users/Alikhll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alikhll/subscriptions","organizations_url":"https://api.github.com/users/Alikhll/orgs","repos_url":"https://api.github.com/users/Alikhll/repos","events_url":"https://api.github.com/users/Alikhll/events{/privacy}","received_events_url":"https://api.github.com/users/Alikhll/received_events","type":"User","site_admin":false},"assignees":[{"login":"Alikhll","id":17675690,"avatar_url":"https://avatars.githubusercontent.com/u/17675690?v=3","gravatar_id":"","url":"https://api.github.com/users/Alikhll","html_url":"https://github.com/Alikhll","followers_url":"https://api.github.com/users/Alikhll/followers","following_url":"https://api.github.com/users/Alikhll/following{/other_user}","gists_url":"https://api.github.com/users/Alikhll/gists{/gist_id}","starred_url":"https://api.github.com/users/Alikhll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alikhll/subscriptions","organizations_url":"https://api.github.com/users/Alikhll/orgs","repos_url":"https://api.github.com/users/Alikhll/repos","events_url":"https://api.github.com/users/Alikhll/events{/privacy}","received_events_url":"https://api.github.com/users/Alikhll/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-12-19T09:53:07Z","updated_at":"2016-12-19T10:40:57Z","closed_at":null,"body":"```\r\n       [Function]\r\n       [Parameter(\"firstNumber\", typeof(int))]\r\n       [Parameter(\"secondNumber\", typeof(int), isOptional: true)]\r\n       public virtual async Task<int> Sum(CancellationToken cancellationToken, [FromODataUri]int firstNumber, [FromODataUri]int secondNumber = 10)\r\n       {\r\n           return firstNumber + secondNumber;\r\n       }\r\n```\r\nAs I tested, generated JavaScript & TypeScript codes of html client are ok, but when I take a look at generated $metadata of DefaultAutoEdmBuilder, I see no IsOptional on that and I see bad request exception when I pass firstNumber, but I get the result when I pass both parameters"},"comment":{"url":"https://api.github.com/repos/bit-foundation/bit-framework/issues/comments/267933675","html_url":"https://github.com/bit-foundation/bit-framework/issues/12#issuecomment-267933675","issue_url":"https://api.github.com/repos/bit-foundation/bit-framework/issues/12","id":267933675,"user":{"login":"ymoradi","id":5352980,"avatar_url":"https://avatars.githubusercontent.com/u/5352980?v=3","gravatar_id":"","url":"https://api.github.com/users/ymoradi","html_url":"https://github.com/ymoradi","followers_url":"https://api.github.com/users/ymoradi/followers","following_url":"https://api.github.com/users/ymoradi/following{/other_user}","gists_url":"https://api.github.com/users/ymoradi/gists{/gist_id}","starred_url":"https://api.github.com/users/ymoradi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ymoradi/subscriptions","organizations_url":"https://api.github.com/users/ymoradi/orgs","repos_url":"https://api.github.com/users/ymoradi/repos","events_url":"https://api.github.com/users/ymoradi/events{/privacy}","received_events_url":"https://api.github.com/users/ymoradi/received_events","type":"User","site_admin":false},"created_at":"2016-12-19T10:40:57Z","updated_at":"2016-12-19T10:40:57Z","body":"Can't find out why! Please write E2E test for this after resolving the issue."}}
{"actor":{"display_login":"ymoradi"}}