{"action":"opened","issue":{"url":"https://api.github.com/repos/zalando/play-swagger/issues/21","labels_url":"https://api.github.com/repos/zalando/play-swagger/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/zalando/play-swagger/issues/21/comments","events_url":"https://api.github.com/repos/zalando/play-swagger/issues/21/events","html_url":"https://github.com/zalando/play-swagger/issues/21","id":111231943,"number":21,"title":"Parameter format password breaks generation","user":{"login":"nmcb","id":1698211,"avatar_url":"https://avatars.githubusercontent.com/u/1698211?v=3","gravatar_id":"","url":"https://api.github.com/users/nmcb","html_url":"https://github.com/nmcb","followers_url":"https://api.github.com/users/nmcb/followers","following_url":"https://api.github.com/users/nmcb/following{/other_user}","gists_url":"https://api.github.com/users/nmcb/gists{/gist_id}","starred_url":"https://api.github.com/users/nmcb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nmcb/subscriptions","organizations_url":"https://api.github.com/users/nmcb/orgs","repos_url":"https://api.github.com/users/nmcb/repos","events_url":"https://api.github.com/users/nmcb/events{/privacy}","received_events_url":"https://api.github.com/users/nmcb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/zalando/play-swagger/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-13T17:43:58Z","updated_at":"2015-10-13T17:43:58Z","closed_at":null,"body":"The parameter `format: password` for `type: string` breaks generation, the `Password` type is omitted from the imports in the generated code:\r\n\r\nAPI definition:\r\n```\r\n---\r\nswagger: '2.0'\r\nx-api-first-package: controllers\r\ninfo:\r\n  version: 0.0.0\r\n  title: Simple API Test\r\npaths:\r\n  /{bippy}:\r\n    get:\r\n      parameters:\r\n        - in: path\r\n          name: bippy\r\n          type: string\r\n          format: password\r\n          # path parameter required as a workaround for issue 5 \r\n          required: true\r\n      responses:\r\n        200:\r\n          description: bippy response\r\n# model definition required as a workaround for issue 18          \r\ndefinitions:\r\n  bop:\r\n    properties:\r\n      name:\r\n        type: string\r\n```\r\n\r\nGeneration:\r\n\r\n```\r\n[play-swagger-test] $ compile\r\n[info] Compiling 17 Scala sources and 1 Java source to /Users/marco/Code/play-swagger-test/target/scala-2.11/classes...\r\n[error] /Users/marco/Code/play-swagger-test/target/scala-2.11/routes/main/controllers/bippy.yaml.scala:21: not found: type Password\r\n[error]     private type getByBippyActionRequestType = (Password)\r\n[error]                                                 ^\r\n[error] /Users/marco/Code/play-swagger-test/target/scala-2.11/routes/main/controllers/bippy.yaml.scala:28: not found: type Password\r\n[error]     def getByBippyAction = (f: getByBippyActionType) => (bippy: Password) => Action {\r\n[error]                                                                 ^\r\n[error] /Users/marco/Code/play-swagger-test/target/scala-2.11/routes/main/validators/bippy.yaml.scala:21: not found: type Password\r\n[error]    class ValidationForBippyYamlgetByBippy(in: (Password)) {\r\n[error]                                                ^\r\n[error] /Users/marco/Code/play-swagger-test/target/scala-2.11/routes/main/validators/bippy.yaml.scala:24: not found: type Password\r\n[error]   val bippyConstraints = new ValidationBase[Password] {\r\n[error]                                             ^\r\n[error] /Users/marco/Code/play-swagger-test/target/scala-2.11/routes/main/validators/bippy.yaml.scala:25: not found: type Password\r\n[error]       override def constraints: Seq[Constraint[Password]] = Seq(\r\n[error]                                                ^\r\n[error] /Users/marco/Code/play-swagger-test/target/scala-2.11/routes/main/../../../../controller_skeletons/bippy.yaml.scala:9: not found: type Password\r\n[error]   def getByBippy = getByBippyAction { in : (Password) =>\r\n[error]                                             ^\r\n[error] /Users/marco/Code/play-swagger-test/target/scala-2.11/routes/main/../../../../test/bippy.yaml.scala:41: not found: type Password\r\n[error]         def testInvalidInput(in: (Password)) = {\r\n[error]                                   ^\r\n[error] /Users/marco/Code/play-swagger-test/target/scala-2.11/routes/main/../../../../test/bippy.yaml.scala:56: not found: type Password\r\n[error]         def testValidInput(in: (Password)) = {\r\n[error]                                 ^\r\n[error] /Users/marco/Code/play-swagger-test/target/scala-2.11/routes/main/../../../../test/bippy.yaml.scala:65: not found: type Password\r\n[error]                bippy <- arbitrary[Password]\r\n[error]                                   ^\r\n[error] /Users/marco/Code/play-swagger-test/target/scala-2.11/routes/main/../../../../test/bippy.yaml.scala:76: not found: type Password\r\n[error]                bippy <- arbitrary[Password]\r\n[error]                                   ^\r\n[error] /Users/marco/Code/play-swagger-test/conf/bippy.yaml:0: not found: type Password\r\n[error] /Users/marco/Code/play-swagger-test/conf/bippy.yaml:0: not found: type Password\r\n[error] /Users/marco/Code/play-swagger-test/conf/bippy.yaml:0: not found: type Password\r\n[error] /Users/marco/Code/play-swagger-test/conf/bippy.yaml:0: not found: type Password\r\n[error] /Users/marco/Code/play-swagger-test/conf/bippy.yaml:0: not found: type Password\r\n[error] 15 errors found\r\n[error] (compile:compileIncremental) Compilation failed\r\n[error] Total time: 1 s, completed Oct 13, 2015 7:29:21 PM\r\n```"}}