{"action":"created","issue":{"url":"https://api.github.com/repos/zalando/api-first-hand/issues/41","repository_url":"https://api.github.com/repos/zalando/api-first-hand","labels_url":"https://api.github.com/repos/zalando/api-first-hand/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/zalando/api-first-hand/issues/41/comments","events_url":"https://api.github.com/repos/zalando/api-first-hand/issues/41/events","html_url":"https://github.com/zalando/api-first-hand/issues/41","id":188451192,"number":41,"title":"No Json deserializer found for type","user":{"login":"eyasuyuki","id":970639,"avatar_url":"https://avatars.githubusercontent.com/u/970639?v=3","gravatar_id":"","url":"https://api.github.com/users/eyasuyuki","html_url":"https://github.com/eyasuyuki","followers_url":"https://api.github.com/users/eyasuyuki/followers","following_url":"https://api.github.com/users/eyasuyuki/following{/other_user}","gists_url":"https://api.github.com/users/eyasuyuki/gists{/gist_id}","starred_url":"https://api.github.com/users/eyasuyuki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eyasuyuki/subscriptions","organizations_url":"https://api.github.com/users/eyasuyuki/orgs","repos_url":"https://api.github.com/users/eyasuyuki/repos","events_url":"https://api.github.com/users/eyasuyuki/events{/privacy}","received_events_url":"https://api.github.com/users/eyasuyuki/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-10T08:50:21Z","updated_at":"2016-11-11T00:38:49Z","closed_at":null,"body":"I use this swagger spec.\r\n\r\n```\r\nswagger: \"2.0\"\r\ninfo:\r\n  version: 1.0.0\r\n  title: example\r\nbasePath: /v1\r\nschemes:\r\n  - http\r\nconsumes:\r\n  - application/json\r\nproduces:\r\n  - application/json\r\npaths:\r\n  /user:\r\n    get:\r\n      summary: List all users\r\n      operationId: listUser\r\n      tags:\r\n        - user\r\n      responses:\r\n        \"200\":\r\n          description: An paged array of users\r\n          headers:\r\n            x-next:\r\n              type: string\r\n              description: A link to the next page of responses\r\n          schema:\r\n            type: array\r\n            items:\r\n              $ref: '#/definitions/User'\r\n        default:\r\n          description: unexpected error\r\n          schema:\r\n            $ref: '#/definitions/Error'\r\n    post:\r\n      summary: Create a User\r\n      operationId: createUser\r\n      tags:\r\n        - user\r\n      parameters:\r\n        - name: name\r\n          in: query\r\n          type: string\r\n          required: true\r\n      responses:\r\n        \"200\":\r\n          description: created User\r\n          schema:\r\n            $ref: '#/definitions/User'\r\n        default:\r\n          description: unexpected error\r\n          schema:\r\n            $ref: '#/definitions/Error'\r\n  /user/{id}:\r\n    get:\r\n      summary: Info for a specific pet\r\n      operationId: showUserById\r\n      tags:\r\n        - user\r\n      parameters:\r\n        - name: id\r\n          in: path\r\n          required: true\r\n          description: The id of the user to retrieve\r\n          type: integer\r\n      responses:\r\n        \"200\":\r\n          description: Expected response to a valid request\r\n          schema:\r\n            $ref: '#/definitions/User'\r\n        default:\r\n          description: unexpected error\r\n          schema:\r\n            $ref: '#/definitions/Error'\r\n    put:\r\n      summary: Modify user\r\n      operationId: putUser\r\n      tags:\r\n        - user\r\n      parameters:\r\n        - name: id\r\n          in: path\r\n          required: true\r\n          description: User id\r\n          type: integer\r\n        - name: body\r\n          in: body\r\n          required: true\r\n          schema:\r\n            $ref: '#/definitions/User'\r\n      responses:\r\n        \"200\":\r\n          description: User modified\r\n          schema:\r\n            $ref: '#/definitions/User'\r\n        default:\r\n          description: unexpetded error\r\n          schema:\r\n            $ref: '#/definitions/Error'\r\ndefinitions:\r\n  User:\r\n    properties:\r\n      id:\r\n        type: integer\r\n        format: int64\r\n      name:\r\n        type: string\r\n      money:\r\n        type: object\r\n        allOf:\r\n          - $ref: '#/definitions/Money'\r\n  Money:\r\n    properties:\r\n      id:\r\n        type: integer\r\n        format: int64\r\n      userId:\r\n        type: integer\r\n        format: int64\r\n      amount:\r\n        type: number\r\n      createDate:\r\n        type: string\r\n        format: date-time\r\n  Error:\r\n    required:\r\n      - code\r\n      - message\r\n    properties:\r\n      code:\r\n        type: integer\r\n        format: int32\r\n      message:\r\n        type: string\r\n```\r\n\r\nI got these error.\r\n\r\n```\r\nplay.sbt.PlayExceptions$CompilationException: Compilation error[No Json deserializer found for type example.yaml.UserMoney. Try to implement an implicit Reads or Format for this type.]\r\n\tat play.sbt.PlayExceptions$CompilationException$.apply(PlayExceptions.scala:27)\r\n\tat play.sbt.PlayExceptions$CompilationException$.apply(PlayExceptions.scala:27)\r\n\tat scala.Option.map(Option.scala:145)\r\n\tat play.sbt.run.PlayReload$$anonfun$taskFailureHandler$1.apply(PlayReload.scala:49)\r\n\tat play.sbt.run.PlayReload$$anonfun$taskFailureHandler$1.apply(PlayReload.scala:44)\r\n\tat scala.Option.map(Option.scala:145)\r\n\tat play.sbt.run.PlayReload$.taskFailureHandler(PlayReload.scala:44)\r\n\tat play.sbt.run.PlayReload$.compileFailure(PlayReload.scala:40)\r\n\tat play.sbt.run.PlayReload$$anonfun$compile$1.apply(PlayReload.scala:17)\r\n\tat play.sbt.run.PlayReload$$anonfun$compile$1.apply(PlayReload.scala:17)\r\n```\r\n\r\nproject/plugins.sbt\r\n\r\n```\r\nresolvers += Resolver.url(\"sbt-plugins\", url(\"http://dl.bintray.com/zalando/sbt-plugins\"))(Resolver.ivyStylePatterns)\r\n\r\nresolvers += \"zalando-bintray\"  at \"https://dl.bintray.com/zalando/maven\"\r\n\r\nresolvers += \"scalaz-bintray\"   at \"http://dl.bintray.com/scalaz/releases\"\r\n\r\naddSbtPlugin(\"com.typesafe.play\" % \"sbt-plugin\"       % \"2.5.4\")\r\n\r\naddSbtPlugin(\"de.zalando\" % \"sbt-api-first-hand\" % \"0.2.0\")\r\n```"},"comment":{"url":"https://api.github.com/repos/zalando/api-first-hand/issues/comments/259850233","html_url":"https://github.com/zalando/api-first-hand/issues/41#issuecomment-259850233","issue_url":"https://api.github.com/repos/zalando/api-first-hand/issues/41","id":259850233,"user":{"login":"eyasuyuki","id":970639,"avatar_url":"https://avatars.githubusercontent.com/u/970639?v=3","gravatar_id":"","url":"https://api.github.com/users/eyasuyuki","html_url":"https://github.com/eyasuyuki","followers_url":"https://api.github.com/users/eyasuyuki/followers","following_url":"https://api.github.com/users/eyasuyuki/following{/other_user}","gists_url":"https://api.github.com/users/eyasuyuki/gists{/gist_id}","starred_url":"https://api.github.com/users/eyasuyuki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eyasuyuki/subscriptions","organizations_url":"https://api.github.com/users/eyasuyuki/orgs","repos_url":"https://api.github.com/users/eyasuyuki/repos","events_url":"https://api.github.com/users/eyasuyuki/events{/privacy}","received_events_url":"https://api.github.com/users/eyasuyuki/received_events","type":"User","site_admin":false},"created_at":"2016-11-11T00:38:49Z","updated_at":"2016-11-11T00:38:49Z","body":"I re-write a property 'money' from:\r\n\r\n```\r\n      money:\r\n        type: object\r\n        allOf:\r\n          - $ref: '#/definitions/Money'\r\n```\r\n\r\nTo:\r\n\r\n```\r\n      money:\r\n        $ref: '#/definitions/Money'\r\n```\r\n\r\nThen I had no errors.\r\n\r\nBut I want to add this property to vendor extension property like below:\r\n\r\n```\r\n      money:\r\n        x-foo: true\r\n        type: object\r\n        allOf:\r\n          - $ref: '#/definitions/Money'\r\n```\r\n\r\nc.f.) https://github.com/OAI/OpenAPI-Specification/issues/556\r\n\r\nIs this same issue of #23 ?\r\n"}}
{"actor":{"display_login":"eyasuyuki"}}