{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1806","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1806/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1806/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1806/events","html_url":"https://github.com/swagger-api/swagger-codegen/issues/1806","id":124790014,"number":1806,"title":"[Java Client] Types with format are not correctly mapped","user":{"login":"hiveship","id":6461306,"avatar_url":"https://avatars.githubusercontent.com/u/6461306?v=3","gravatar_id":"","url":"https://api.github.com/users/hiveship","html_url":"https://github.com/hiveship","followers_url":"https://api.github.com/users/hiveship/followers","following_url":"https://api.github.com/users/hiveship/following{/other_user}","gists_url":"https://api.github.com/users/hiveship/gists{/gist_id}","starred_url":"https://api.github.com/users/hiveship/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hiveship/subscriptions","organizations_url":"https://api.github.com/users/hiveship/orgs","repos_url":"https://api.github.com/users/hiveship/repos","events_url":"https://api.github.com/users/hiveship/events{/privacy}","received_events_url":"https://api.github.com/users/hiveship/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-04T16:27:14Z","updated_at":"2016-01-14T11:13:21Z","closed_at":null,"body":"Considering the following Swagger Specification:\r\n\r\n``` yaml\r\nswagger: '2.0'\r\ninfo:\r\n  title: Fake API\r\n  description: A simple sample\r\n  version: 1.0.0\r\nhost: localhost:8080\r\nschemes:\r\n  - http\r\nbasePath: /nabutalk\r\nproduces:\r\n  - application/json\r\n  - application/xml\r\nsecurityDefinitions:\r\n  authentication:\r\n    type: basic\r\n    description: HTTP Basic Authentication. Works over `HTTP` \r\npaths:\r\n  /tenants:\r\n    get:\r\n      security:\r\n          - authentication: []\r\n      summary: Tenants\r\n      description: \r\n        Get all the existing tenants\r\n      responses:\r\n        '200':\r\n          description: An array of tenants\r\n          schema:\r\n            type: array\r\n            items:\r\n              $ref: '#/definitions/Tenant'\r\n        default:\r\n          description: Unexpected error\r\n          schema:\r\n            $ref: '#/definitions/Error'\r\ndefinitions:\r\n  Tenant:\r\n    required: [tenant_id]\r\n    type: object\r\n    properties:\r\n      tenant_id:\r\n        type: string\r\n        description: 'Unique identifier representing a specific tenant'\r\n      tenant_uuid:\r\n        type: string\r\n        format: uuid\r\n        description: 'Unique identifier representing a specific tenant'\r\n      display_name:\r\n        type: string\r\n        description: Display name of tenant.\r\n  Error:\r\n    type: object\r\n    properties:\r\n      identifier:\r\n        type: string\r\n        format: uuid\r\n      message:\r\n        type: string\r\n      fields:\r\n        type: string\r\n\r\n```\r\nMy model object \"Tenant\" as an identifier \"uuid\". I have defined it as a \"string\" type with the format \"uuid\". In the Java Client, I was expecting that the field \"tenant_uuid\" will be an instance of ```java.util.uuid```\r\nHowever, it is just mapped as a string. The \"format\" element is ignored by the Java code (not even used for documentation).\r\n````java\r\n  /**\r\n   * Unique identifier representing a specific tenant\r\n   **/\r\n  @ApiModelProperty(value = \"Unique identifier representing a specific tenant\")\r\n  @JsonProperty(\"tenant_uuid\")\r\n  public String getTenantUuid() {\r\n    return tenantUuid;\r\n  }\r\n  public void setTenantUuid(String tenantUuid) {\r\n    this.tenantUuid = tenantUuid;\r\n  }\r\n````\r\nAfter a read of the Swagger Specification, I know the formats such as \"uuid\" are not defined by the specification. However, is it possible to edit the Swagger Codegen for the Java Client to handle the \"uuid\" format ?"},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/comments/171615378","html_url":"https://github.com/swagger-api/swagger-codegen/issues/1806#issuecomment-171615378","issue_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1806","id":171615378,"user":{"login":"hiveship","id":6461306,"avatar_url":"https://avatars.githubusercontent.com/u/6461306?v=3","gravatar_id":"","url":"https://api.github.com/users/hiveship","html_url":"https://github.com/hiveship","followers_url":"https://api.github.com/users/hiveship/followers","following_url":"https://api.github.com/users/hiveship/following{/other_user}","gists_url":"https://api.github.com/users/hiveship/gists{/gist_id}","starred_url":"https://api.github.com/users/hiveship/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hiveship/subscriptions","organizations_url":"https://api.github.com/users/hiveship/orgs","repos_url":"https://api.github.com/users/hiveship/repos","events_url":"https://api.github.com/users/hiveship/events{/privacy}","received_events_url":"https://api.github.com/users/hiveship/received_events","type":"User","site_admin":false},"created_at":"2016-01-14T11:13:21Z","updated_at":"2016-01-14T11:13:21Z","body":"I submitted a PR https://github.com/swagger-api/swagger-codegen/pull/1855"}}