{"action":"opened","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/2412","repository_url":"https://api.github.com/repos/swagger-api/swagger-ui","labels_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/2412/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/2412/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/2412/events","html_url":"https://github.com/swagger-api/swagger-ui/issues/2412","id":177904869,"number":2412,"title":"Swagger response referencing","user":{"login":"simar15","id":13056996,"avatar_url":"https://avatars.githubusercontent.com/u/13056996?v=3","gravatar_id":"","url":"https://api.github.com/users/simar15","html_url":"https://github.com/simar15","followers_url":"https://api.github.com/users/simar15/followers","following_url":"https://api.github.com/users/simar15/following{/other_user}","gists_url":"https://api.github.com/users/simar15/gists{/gist_id}","starred_url":"https://api.github.com/users/simar15/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simar15/subscriptions","organizations_url":"https://api.github.com/users/simar15/orgs","repos_url":"https://api.github.com/users/simar15/repos","events_url":"https://api.github.com/users/simar15/events{/privacy}","received_events_url":"https://api.github.com/users/simar15/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-19T21:36:42Z","updated_at":"2016-09-19T21:36:42Z","closed_at":null,"body":"Hi I am working with Swagger version 2.10.3\r\n\r\nI need to create reference file for http responses, (400,401,404) which produce the same result for all the methods, hence better to reference than to create redundant block of code.\r\n\r\n\r\n`responses:\r\n        '200':\r\n          description: OK\r\n          schema:\r\n            type: object\r\n            properties:\r\n              _id:\r\n                $ref: '#/definitions/Id'\r\n              _links:\r\n                type: object\r\n                properties:\r\n                  curies:\r\n                    $ref: '#/definitions/Curies'\r\n                  self:\r\n                    $ref: '#/definitions/Self'\r\n              name:\r\n                type: string\r\n                description: The name of the category.\r\n        \r\n          $ref: '#/definitions/responses'\r\n          `\r\n\r\nresponse 200 is different for different methods.  \r\n\r\nand this is what I have under definitions:\r\n`definitions:\r\n\r\n  responses:\r\n    type: object\r\n    properties:\r\n      '400':\r\n       type: string\r\n       default: Bad Request.`\r\n\r\nbut I get the error\r\n\r\n✖ Swagger Error\r\nNot a valid response definition\r\nJump to line 103\r\nDetails\r\n Object\r\n\r\nAny help with this would be really appreciated.\r\n\r\n\r\n\r\n\r\nWhen reporting a bug, please provide the following details:\r\n- swagger-ui version\r\n- a swagger file reproducing the issue\r\n"}}
{"actor":{"display_login":"simar15"}}