{"action":"reopened","issue":{"url":"https://api.github.com/repos/Azure/azure-functions-vs-build-sdk/issues/186","repository_url":"https://api.github.com/repos/Azure/azure-functions-vs-build-sdk","labels_url":"https://api.github.com/repos/Azure/azure-functions-vs-build-sdk/issues/186/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-functions-vs-build-sdk/issues/186/comments","events_url":"https://api.github.com/repos/Azure/azure-functions-vs-build-sdk/issues/186/events","html_url":"https://github.com/Azure/azure-functions-vs-build-sdk/issues/186","id":308928740,"number":186,"title":"Incorrect bindings in function.json for EventHubTrigger","user":{"login":"ebashmakov","id":970886,"avatar_url":"https://avatars2.githubusercontent.com/u/970886?v=4","gravatar_id":"","url":"https://api.github.com/users/ebashmakov","html_url":"https://github.com/ebashmakov","followers_url":"https://api.github.com/users/ebashmakov/followers","following_url":"https://api.github.com/users/ebashmakov/following{/other_user}","gists_url":"https://api.github.com/users/ebashmakov/gists{/gist_id}","starred_url":"https://api.github.com/users/ebashmakov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebashmakov/subscriptions","organizations_url":"https://api.github.com/users/ebashmakov/orgs","repos_url":"https://api.github.com/users/ebashmakov/repos","events_url":"https://api.github.com/users/ebashmakov/events{/privacy}","received_events_url":"https://api.github.com/users/ebashmakov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-27T11:27:32Z","updated_at":"2018-03-27T11:37:51Z","closed_at":null,"author_association":"NONE","body":"The SDK generates an incorrect binding for EventHubTrigger: should be property `path` instead of `eventHubName`.\r\n\r\nSDK version: `1.0.10`\r\nTargetFramework: `net462`\r\n\r\n**Actual result**:\r\n```\r\n{\r\n  \"generatedBy\": \"Microsoft.NET.Sdk.Functions.Generator-1.0.0.0\",\r\n  \"configurationSource\": \"attributes\",\r\n  \"bindings\": [\r\n    {\r\n      \"type\": \"eventHubTrigger\",\r\n      \"consumerGroup\": \"someGroup\",\r\n      \"connection\": \"EventHubConnection\",\r\n      \"eventHubName\": \"someHubName\"\r\n      \"name\": \"someName\"\r\n    }\r\n  ],\r\n  \"disabled\": false,\r\n  \"scriptFile\": \"../bin/Test.dll\",\r\n  \"entryPoint\": \"Runner.DoSomething\"\r\n}\r\n```\r\n\r\n**Expected result**:\r\n```\r\n{\r\n  \"generatedBy\": \"Microsoft.NET.Sdk.Functions.Generator-1.0.0.0\",\r\n  \"configurationSource\": \"attributes\",\r\n  \"bindings\": [\r\n    {\r\n      \"type\": \"eventHubTrigger\",\r\n      \"consumerGroup\": \"someGroup\",\r\n      \"connection\": \"EventHubConnection\",\r\n      \"path\": \"someHubName\"\r\n      \"name\": \"someName\"\r\n    }\r\n  ],\r\n  \"disabled\": false,\r\n  \"scriptFile\": \"../bin/Test.dll\",\r\n  \"entryPoint\": \"Runner.DoSomething\"\r\n}\r\n```\r\n\r\n"}}
{"actor":{"display_login":"ebashmakov"}}