{"action":"opened","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1639","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1639/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1639/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1639/events","html_url":"https://github.com/swagger-api/swagger-codegen/issues/1639","id":119492670,"number":1639,"title":"[C#] Return type InlineResponse200 and compilation error instead of object","user":{"login":"artem-dudarev","id":8775253,"avatar_url":"https://avatars.githubusercontent.com/u/8775253?v=3","gravatar_id":"","url":"https://api.github.com/users/artem-dudarev","html_url":"https://github.com/artem-dudarev","followers_url":"https://api.github.com/users/artem-dudarev/followers","following_url":"https://api.github.com/users/artem-dudarev/following{/other_user}","gists_url":"https://api.github.com/users/artem-dudarev/gists{/gist_id}","starred_url":"https://api.github.com/users/artem-dudarev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artem-dudarev/subscriptions","organizations_url":"https://api.github.com/users/artem-dudarev/orgs","repos_url":"https://api.github.com/users/artem-dudarev/repos","events_url":"https://api.github.com/users/artem-dudarev/events{/privacy}","received_events_url":"https://api.github.com/users/artem-dudarev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-30T13:36:16Z","updated_at":"2015-11-30T13:36:16Z","closed_at":null,"body":"If API return type is object then generated method returns InlineResponse200, but not object.\r\nThis InlineResponse200 also has an invalid Equals() implementation which produces the following compilation error:\r\nerror CS0126: An object of a type convertible to 'bool' is required\r\n\r\nSwagger spec:\r\n```json\r\n{\r\n    \"swagger\": \"2.0\",\r\n    \"paths\": {\r\n        \"/api/test\": {\r\n            \"get\": {\r\n                \"operationId\": \"Test\",\r\n                \"responses\": {\r\n                    \"200\": {\r\n                        \"schema\": { \"type\": \"object\" }\r\n                    }\r\n                }\r\n            }\r\n        }\r\n    }\r\n}\r\n```\r\nGenerated code:\r\n```c#\r\npublic interface IDefaultApi\r\n{\r\n    InlineResponse200 Test ();\r\n}\r\n\r\npublic class InlineResponse200 : IEquatable<InlineResponse200>\r\n{\r\n    public bool Equals(InlineResponse200 other)\r\n    {\r\n        if (other == null)\r\n            return false;\r\n        return ;\r\n    }\r\n}\r\n```\r\nExpected:\r\n```c#\r\npublic interface IDefaultApi\r\n{\r\n    object Test();\r\n}\r\n```"}}