{"action":"closed","issue":{"url":"https://api.github.com/repos/carlansley/swagger2/issues/3","repository_url":"https://api.github.com/repos/carlansley/swagger2","labels_url":"https://api.github.com/repos/carlansley/swagger2/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/carlansley/swagger2/issues/3/comments","events_url":"https://api.github.com/repos/carlansley/swagger2/issues/3/events","html_url":"https://github.com/carlansley/swagger2/issues/3","id":191834606,"number":3,"title":"Parameters in Path Object lead to Problems","user":{"login":"cHolzberger","id":43754,"avatar_url":"https://avatars.githubusercontent.com/u/43754?v=3","gravatar_id":"","url":"https://api.github.com/users/cHolzberger","html_url":"https://github.com/cHolzberger","followers_url":"https://api.github.com/users/cHolzberger/followers","following_url":"https://api.github.com/users/cHolzberger/following{/other_user}","gists_url":"https://api.github.com/users/cHolzberger/gists{/gist_id}","starred_url":"https://api.github.com/users/cHolzberger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cHolzberger/subscriptions","organizations_url":"https://api.github.com/users/cHolzberger/orgs","repos_url":"https://api.github.com/users/cHolzberger/repos","events_url":"https://api.github.com/users/cHolzberger/events{/privacy}","received_events_url":"https://api.github.com/users/cHolzberger/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-27T00:32:59Z","updated_at":"2016-11-27T05:16:44Z","closed_at":"2016-11-27T05:16:44Z","body":"when using a Parameter Object directly within an Path Object the compiler will error out.\r\n\r\nSee http://swagger.io/specification/#pathsObject for the definiton. \r\n\r\nthis snippet causes the error: \r\n\r\n```\r\n... \r\npaths: \r\n  /item/{sku}:\r\n    parameters:\r\n      - name: sku\r\n        in: path\r\n        required: true\r\n        description: sku of the `InventoryItem` to lookup\r\n        type: string\r\n    get:\r\n      summary: Get an item by sku\r\n      description: |\r\n        Returns a signle item identified by sku\r\n\r\n      responses:\r\n        200:\r\n          $ref: \"#/responses/InventoryItemResponse\"\r\n        404:\r\n          $ref: \"#/responses/UnknownSkuError\"\r\n``` \r\n\r\ncan provide a whole definition if needed. \r\n\r\nnot sure whats the right way to fix it.\r\n--edit\r\nok i get why the compile fails, `parameters`is of type `array` while the code expects only objects inside the path object. \r\nwhich is good - because the other way around this bug would go by unnoticed."}}
{"actor":{"display_login":"carlansley"}}