{"action":"created","issue":{"url":"https://api.github.com/repos/wcandillon/swagger-js-codegen/issues/40","labels_url":"https://api.github.com/repos/wcandillon/swagger-js-codegen/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/wcandillon/swagger-js-codegen/issues/40/comments","events_url":"https://api.github.com/repos/wcandillon/swagger-js-codegen/issues/40/events","html_url":"https://github.com/wcandillon/swagger-js-codegen/issues/40","id":53861257,"number":40,"title":"Add support for \"global\" path object parameters","user":{"login":"borisirota","id":5683472,"avatar_url":"https://avatars.githubusercontent.com/u/5683472?v=3","gravatar_id":"","url":"https://api.github.com/users/borisirota","html_url":"https://github.com/borisirota","followers_url":"https://api.github.com/users/borisirota/followers","following_url":"https://api.github.com/users/borisirota/following{/other_user}","gists_url":"https://api.github.com/users/borisirota/gists{/gist_id}","starred_url":"https://api.github.com/users/borisirota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/borisirota/subscriptions","organizations_url":"https://api.github.com/users/borisirota/orgs","repos_url":"https://api.github.com/users/borisirota/repos","events_url":"https://api.github.com/users/borisirota/events{/privacy}","received_events_url":"https://api.github.com/users/borisirota/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-09T12:03:36Z","updated_at":"2015-01-09T18:59:31Z","closed_at":null,"body":"Hi,\r\n\r\nAs specified in the spec, the paths object can contain [parameters property](https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#path-item-object-) as well and not only http method names.\r\n\r\nAs I see in [the code](https://github.com/wcandillon/swagger-js-codegen/blob/master/lib/codegen.js#L35), it expects only http methods.\r\n\r\nI use this when using [path templating](https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#path-templating) so instead of declaring the path parameter in every operation, I declare it once to be \"global\" of some specific path.\r\n\r\nSwagger Example:\r\n```\r\n  /campaigns/{campaignId}:\r\n    x-swagger-router-controller: campaignsCtrl\r\n    parameters:\r\n      -\r\n        name: campaignId\r\n        in: path\r\n        description: campaign's id \r\n        required: true\r\n        type: string\r\n    get:\r\n      summary: get campaign\r\n      description: get campaign\r\n      operationId: findById\r\n      responses:\r\n        200:\r\n          description: single marpack\r\n        default:\r\n          description: Error\r\n    delete:\r\n      summary: Delete campaign\r\n      description: Delete campaign\r\n      operationId: delete\r\n      responses:\r\n        204:\r\n          description: campaign deleted\r\n        404:\r\n          description: campaign not found\r\n        default:\r\n          description: Error\r\n\r\n```\r\n\r\nThanks,\r\nBoris"},"comment":{"url":"https://api.github.com/repos/wcandillon/swagger-js-codegen/issues/comments/69381093","html_url":"https://github.com/wcandillon/swagger-js-codegen/issues/40#issuecomment-69381093","issue_url":"https://api.github.com/repos/wcandillon/swagger-js-codegen/issues/40","id":69381093,"user":{"login":"wcandillon","id":306134,"avatar_url":"https://avatars.githubusercontent.com/u/306134?v=3","gravatar_id":"","url":"https://api.github.com/users/wcandillon","html_url":"https://github.com/wcandillon","followers_url":"https://api.github.com/users/wcandillon/followers","following_url":"https://api.github.com/users/wcandillon/following{/other_user}","gists_url":"https://api.github.com/users/wcandillon/gists{/gist_id}","starred_url":"https://api.github.com/users/wcandillon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wcandillon/subscriptions","organizations_url":"https://api.github.com/users/wcandillon/orgs","repos_url":"https://api.github.com/users/wcandillon/repos","events_url":"https://api.github.com/users/wcandillon/events{/privacy}","received_events_url":"https://api.github.com/users/wcandillon/received_events","type":"User","site_admin":false},"created_at":"2015-01-09T18:59:31Z","updated_at":"2015-01-09T18:59:31Z","body":"@borisirota I order to efficiently solve this issue, could you send me a concrete use case (swagger file + operation(s) to be invoked)?"}}