{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/181","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/181/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/181/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/181/events","html_url":"https://github.com/swagger-api/swagger-codegen/issues/181","id":31020546,"number":181,"title":"\"Cookie\" parameters are not supported - java.lang.Exception: Unknown parameter type: cookie","user":{"login":"GuiSim","id":2000390,"avatar_url":"https://avatars.githubusercontent.com/u/2000390?v=3","gravatar_id":"","url":"https://api.github.com/users/GuiSim","html_url":"https://github.com/GuiSim","followers_url":"https://api.github.com/users/GuiSim/followers","following_url":"https://api.github.com/users/GuiSim/following{/other_user}","gists_url":"https://api.github.com/users/GuiSim/gists{/gist_id}","starred_url":"https://api.github.com/users/GuiSim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GuiSim/subscriptions","organizations_url":"https://api.github.com/users/GuiSim/orgs","repos_url":"https://api.github.com/users/GuiSim/repos","events_url":"https://api.github.com/users/GuiSim/events{/privacy}","received_events_url":"https://api.github.com/users/GuiSim/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/labels/Feature","name":"Feature","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/milestones/1","html_url":"https://github.com/swagger-api/swagger-codegen/milestones/v2.1.0","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/milestones/1/labels","id":829713,"number":1,"title":"v2.1.0","description":"","creator":{"login":"fehguy","id":249413,"avatar_url":"https://avatars.githubusercontent.com/u/249413?v=3","gravatar_id":"","url":"https://api.github.com/users/fehguy","html_url":"https://github.com/fehguy","followers_url":"https://api.github.com/users/fehguy/followers","following_url":"https://api.github.com/users/fehguy/following{/other_user}","gists_url":"https://api.github.com/users/fehguy/gists{/gist_id}","starred_url":"https://api.github.com/users/fehguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fehguy/subscriptions","organizations_url":"https://api.github.com/users/fehguy/orgs","repos_url":"https://api.github.com/users/fehguy/repos","events_url":"https://api.github.com/users/fehguy/events{/privacy}","received_events_url":"https://api.github.com/users/fehguy/received_events","type":"User","site_admin":false},"open_issues":59,"closed_issues":10,"state":"open","created_at":"2014-10-17T02:23:53Z","updated_at":"2015-05-05T14:48:41Z","due_on":"2015-04-19T07:00:00Z","closed_at":null},"comments":9,"created_at":"2014-04-07T20:46:18Z","updated_at":"2015-05-05T14:48:41Z","closed_at":"2015-05-05T14:48:41Z","body":"My REST API has a call that supports a parameter of type \"Cookie\". Swagger seems to handle it well when it comes to generating the server-side api-docs (using JAX-RS) and the JavaScript documentation is generated correctly.\r\n\r\nSadly, when it comes to generating a client, the operation fails with the following stacktrace:\r\n\r\n```\r\njava.lang.Exception: Unknown parameter type: cookie\r\n        at com.wordnik.swagger.codegen.Codegen$$anonfun$apiToMap$2.apply(Codegen.scala:305)\r\n        at com.wordnik.swagger.codegen.Codegen$$anonfun$apiToMap$2.apply(Codegen.scala:238)\r\n        at com.wordnik.swagger.codegen.Codegen.apiToMap(Codegen.scala:238)\r\n        at com.wordnik.swagger.codegen.Codegen$$anonfun$generateSource$2$$anonfun$apply$4.apply(Codegen.scala:83)\r\n        at com.wordnik.swagger.codegen.Codegen$$anonfun$generateSource$2$$anonfun$apply$4.apply(Codegen.scala:77)\r\n        at scala.collection.TraversableLike$WithFilter$$anonfun$foreach$1.apply(TraversableLike.scala:772)\r\n        at scala.collection.immutable.List.foreach(List.scala:318)\r\n        at scala.collection.TraversableLike$WithFilter.foreach(TraversableLike.scala:771)\r\n        at com.wordnik.swagger.codegen.Codegen$$anonfun$generateSource$2.apply(Codegen.scala:77)\r\n        at com.wordnik.swagger.codegen.Codegen$$anonfun$generateSource$2.apply(Codegen.scala:74)\r\n        at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)\r\n        at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)\r\n        at scala.collection.immutable.Map$Map1.foreach(Map.scala:109)\r\n        at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)\r\n        at scala.collection.AbstractTraversable.map(Traversable.scala:105)\r\n        at com.wordnik.swagger.codegen.Codegen.generateSource(Codegen.scala:74)\r\n        at com.wordnik.swagger.codegen.BasicGenerator$$anonfun$bundleToSource$1$$anonfun$apply$8.apply(BasicGenerator.scala:216)\r\n        at com.wordnik.swagger.codegen.BasicGenerator$$anonfun$bundleToSource$1$$anonfun$apply$8.apply(BasicGenerator.scala:215)\r\n        at scala.collection.TraversableLike$WithFilter$$anonfun$foreach$1.apply(TraversableLike.scala:772)\r\n        at scala.collection.immutable.Map$Map1.foreach(Map.scala:109)\r\n        at scala.collection.TraversableLike$WithFilter.foreach(TraversableLike.scala:771)\r\n        at com.wordnik.swagger.codegen.BasicGenerator.bundleToSource(BasicGenerator.scala:214)\r\n        at com.wordnik.swagger.codegen.BasicGenerator.generateClientWithoutExit(BasicGenerator.scala:104)\r\n        at com.wordnik.swagger.codegen.BasicGenerator.generateClient(BasicGenerator.scala:47)\r\n        at com.wordnik.swagger.codegen.BasicPythonGenerator$.main(BasicPythonGenerator.scala:24)\r\n        at com.wordnik.swagger.codegen.BasicPythonGenerator.main(BasicPythonGenerator.scala)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n        at java.lang.reflect.Method.invoke(Method.java:606)\r\n        at scala.tools.nsc.util.ScalaClassLoader$$anonfun$run$1.apply(ScalaClassLoader.scala:71)\r\n        at scala.tools.nsc.util.ScalaClassLoader$class.asContext(ScalaClassLoader.scala:31)\r\n        at scala.tools.nsc.util.ScalaClassLoader$URLClassLoader.asContext(ScalaClassLoader.scala:139)\r\n        at scala.tools.nsc.util.ScalaClassLoader$class.run(ScalaClassLoader.scala:71)\r\n        at scala.tools.nsc.util.ScalaClassLoader$URLClassLoader.run(ScalaClassLoader.scala:139)\r\n        at scala.tools.nsc.CommonRunner$class.run(ObjectRunner.scala:28)\r\n        at scala.tools.nsc.ObjectRunner$.run(ObjectRunner.scala:45)\r\n        at scala.tools.nsc.CommonRunner$class.runAndCatch(ObjectRunner.scala:35)\r\n        at scala.tools.nsc.ObjectRunner$.runAndCatch(ObjectRunner.scala:45)\r\n        at scala.tools.nsc.MainGenericRunner.runTarget$1(MainGenericRunner.scala:74)\r\n        at scala.tools.nsc.MainGenericRunner.process(MainGenericRunner.scala:96)\r\n        at scala.tools.nsc.MainGenericRunner$.main(MainGenericRunner.scala:105)\r\n        at scala.tools.nsc.MainGenericRunner.main(MainGenericRunner.scala)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/comments/99101932","html_url":"https://github.com/swagger-api/swagger-codegen/issues/181#issuecomment-99101932","issue_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/181","id":99101932,"user":{"login":"GuiSim","id":2000390,"avatar_url":"https://avatars.githubusercontent.com/u/2000390?v=3","gravatar_id":"","url":"https://api.github.com/users/GuiSim","html_url":"https://github.com/GuiSim","followers_url":"https://api.github.com/users/GuiSim/followers","following_url":"https://api.github.com/users/GuiSim/following{/other_user}","gists_url":"https://api.github.com/users/GuiSim/gists{/gist_id}","starred_url":"https://api.github.com/users/GuiSim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GuiSim/subscriptions","organizations_url":"https://api.github.com/users/GuiSim/orgs","repos_url":"https://api.github.com/users/GuiSim/repos","events_url":"https://api.github.com/users/GuiSim/events{/privacy}","received_events_url":"https://api.github.com/users/GuiSim/received_events","type":"User","site_admin":false},"created_at":"2015-05-05T14:48:41Z","updated_at":"2015-05-05T14:48:41Z","body":"Alright, if the crash is as designed, I'll close this.\r\nThanks for your time."}}