{"action":"created","issue":{"url":"https://api.github.com/repos/GetShopTV/swagger2/issues/61","repository_url":"https://api.github.com/repos/GetShopTV/swagger2","labels_url":"https://api.github.com/repos/GetShopTV/swagger2/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/GetShopTV/swagger2/issues/61/comments","events_url":"https://api.github.com/repos/GetShopTV/swagger2/issues/61/events","html_url":"https://github.com/GetShopTV/swagger2/issues/61","id":141065152,"number":61,"title":"Generic deriving ToParamSchema fails for a Tuple","user":{"login":"alanz","id":409607,"avatar_url":"https://avatars.githubusercontent.com/u/409607?v=3","gravatar_id":"","url":"https://api.github.com/users/alanz","html_url":"https://github.com/alanz","followers_url":"https://api.github.com/users/alanz/followers","following_url":"https://api.github.com/users/alanz/following{/other_user}","gists_url":"https://api.github.com/users/alanz/gists{/gist_id}","starred_url":"https://api.github.com/users/alanz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanz/subscriptions","organizations_url":"https://api.github.com/users/alanz/orgs","repos_url":"https://api.github.com/users/alanz/repos","events_url":"https://api.github.com/users/alanz/events{/privacy}","received_events_url":"https://api.github.com/users/alanz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-03-15T18:46:17Z","updated_at":"2016-03-18T12:03:42Z","closed_at":null,"body":"```haskell\r\ninstance ToParamSchema (Int,Int)\r\n```\r\n\r\nfails with\r\n\r\n```\r\n        No instance for (Data.Swagger.Internal.ParamSchema.GToParamSchema\r\n                           (M1\r\n                              C\r\n                              GHC.Generics.C1_0(,)\r\n                              (S1 NoSelector (Rec0 Int) :*: S1 NoSelector (Rec0 Int))))\r\n          arising from a use of ‘Data.Swagger.Internal.ParamSchema.$gdmtoParamSchema’\r\n        In the expression:\r\n          Data.Swagger.Internal.ParamSchema.$gdmtoParamSchema\r\n        In an equation for ‘toParamSchema’:\r\n            toParamSchema = Data.Swagger.Internal.ParamSchema.$gdmtoParamSchema\r\n        In the instance declaration for ‘ToParamSchema (Int, Int)’\r\n```\r\nI would expect it to end up something like\r\n\r\n```json\r\n  \"parameters\": [\r\n      {\r\n          \"required\": true,\r\n          \"schema\": {\r\n              \"items\": [\r\n                  {\r\n                      \"maximum\": 9223372036854775807,\r\n                      \"minimum\": -9223372036854775808,\r\n                      \"type\": \"integer\"\r\n                  },\r\n                  {\r\n                      \"maximum\": 9223372036854775807,\r\n                      \"minimum\": -9223372036854775808,\r\n                      \"type\": \"integer\"\r\n                  }\r\n              ],\r\n              \"type\": \"array\"\r\n          },\r\n          \"in\": \"body\",\r\n          \"name\": \"body\"\r\n      }\r\n```"},"comment":{"url":"https://api.github.com/repos/GetShopTV/swagger2/issues/comments/198324989","html_url":"https://github.com/GetShopTV/swagger2/issues/61#issuecomment-198324989","issue_url":"https://api.github.com/repos/GetShopTV/swagger2/issues/61","id":198324989,"user":{"login":"alanz","id":409607,"avatar_url":"https://avatars.githubusercontent.com/u/409607?v=3","gravatar_id":"","url":"https://api.github.com/users/alanz","html_url":"https://github.com/alanz","followers_url":"https://api.github.com/users/alanz/followers","following_url":"https://api.github.com/users/alanz/following{/other_user}","gists_url":"https://api.github.com/users/alanz/gists{/gist_id}","starred_url":"https://api.github.com/users/alanz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanz/subscriptions","organizations_url":"https://api.github.com/users/alanz/orgs","repos_url":"https://api.github.com/users/alanz/repos","events_url":"https://api.github.com/users/alanz/events{/privacy}","received_events_url":"https://api.github.com/users/alanz/received_events","type":"User","site_admin":false},"created_at":"2016-03-18T12:03:42Z","updated_at":"2016-03-18T12:03:42Z","body":"Yes it does, and the key point is that a Schema can be used in the request body, which is what hie does, and explains why the sample works.\r\n\r\nThanks."}}