{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/4231","repository_url":"https://api.github.com/repos/swagger-api/swagger-ui","labels_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/4231/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/4231/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/4231/events","html_url":"https://github.com/swagger-api/swagger-ui/issues/4231","id":298008726,"number":4231,"title":"`format`s of query parameters are not shown","user":{"login":"michalrus","id":4366292,"avatar_url":"https://avatars2.githubusercontent.com/u/4366292?v=4","gravatar_id":"","url":"https://api.github.com/users/michalrus","html_url":"https://github.com/michalrus","followers_url":"https://api.github.com/users/michalrus/followers","following_url":"https://api.github.com/users/michalrus/following{/other_user}","gists_url":"https://api.github.com/users/michalrus/gists{/gist_id}","starred_url":"https://api.github.com/users/michalrus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michalrus/subscriptions","organizations_url":"https://api.github.com/users/michalrus/orgs","repos_url":"https://api.github.com/users/michalrus/repos","events_url":"https://api.github.com/users/michalrus/events{/privacy}","received_events_url":"https://api.github.com/users/michalrus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-17T14:30:16Z","updated_at":"2018-02-19T16:49:13Z","closed_at":null,"author_association":"NONE","body":"<!--- \r\n  If you aren't sure what Swagger-UI version, see this guide: https://github.com/swagger-api/swagger-ui/blob/master/docs/usage/version-detection.md\r\n--->\r\n\r\n\r\n| Q                               | A\r\n| ------------------------------- | -------\r\n| Bug or feature request?         |  Bug\r\n| Which Swagger/OpenAPI version?  | 2\r\n| Which Swagger-UI version?       | 3.9.3\r\n| How did you install Swagger-UI? | From `/dist/`\r\n| Which browser & version?        | Chromium 64.0.3282.140\r\n| Which operating system?         | Linux\r\n\r\n\r\n### Demonstration API definition\r\n```json\r\n{\r\n  \"swagger\": \"2.0\",\r\n  \"paths\": {\r\n    \"/v1/log/login/search\": {\r\n      \"get\": {\r\n        \"description\": \"The format of `paginationStartAt` is a descending `givenAt :: UTCTime`, and the results are always sorted descending by that field.\",\r\n        \"produces\": [\r\n          \"application/json;charset=utf-8\"\r\n        ],\r\n        \"parameters\": [\r\n          {\r\n            \"format\": \"uuid\",\r\n            \"in\": \"query\",\r\n            \"name\": \"userId\",\r\n            \"type\": \"string\",\r\n          },\r\n          {\r\n            \"format\": \"yyyy-mm-ddThh:MM:ssZ\",\r\n            \"in\": \"query\",\r\n            \"name\": \"paginationStartAt\",\r\n            \"type\": \"string\",\r\n          }\r\n        ]\r\n      }\r\n    }\r\n  }\r\n}\r\n```\r\n\r\n### Configuration (browser query string, constructor, config.yaml)\r\n\r\n```js\r\n{\r\n    displayRequestDuration: true,\r\n    tagsSorter: 'alpha',\r\n    operationsSorter: 'alpha',\r\n    url: window.location.origin + \"/swagger.json\",\r\n    dom_id: '#swagger-ui',\r\n    deepLinking: true,\r\n    presets: [\r\n        SwaggerUIBundle.presets.apis,\r\n        SwaggerUIStandalonePreset\r\n    ],\r\n    plugins: [\r\n        SwaggerUIBundle.plugins.DownloadUrl\r\n    ],\r\n    layout: \"StandaloneLayout\"\r\n}\r\n```\r\n\r\n### Expected Behavior\r\n\r\nThe strings `yyyy-mm-ddThh:MM:ssZ` or `uuid` from the API definition above should be displayed somewhere.\r\n\r\n### Current Behavior\r\n\r\nRight now we only get just `string` everywhere, which is not very useful. The `format` property is ignored.\r\n\r\n### Workaround\r\n\r\nWe’re manually adding descriptions like ```\"description\": \"`UTCTime` | `yyyy-mm-ddThh:MM:ssZ`\"``` to the parameters, so that consumers know what to send there.\r\n\r\nThen the intent is clear: ![screenshot-20180216-212719](https://user-images.githubusercontent.com/4366292/36327986-b4253304-1360-11e8-99d3-6a9e6f7fa788.png)"},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/comments/366748276","html_url":"https://github.com/swagger-api/swagger-ui/issues/4231#issuecomment-366748276","issue_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/4231","id":366748276,"user":{"login":"heldersepu","id":545474,"avatar_url":"https://avatars0.githubusercontent.com/u/545474?v=4","gravatar_id":"","url":"https://api.github.com/users/heldersepu","html_url":"https://github.com/heldersepu","followers_url":"https://api.github.com/users/heldersepu/followers","following_url":"https://api.github.com/users/heldersepu/following{/other_user}","gists_url":"https://api.github.com/users/heldersepu/gists{/gist_id}","starred_url":"https://api.github.com/users/heldersepu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heldersepu/subscriptions","organizations_url":"https://api.github.com/users/heldersepu/orgs","repos_url":"https://api.github.com/users/heldersepu/repos","events_url":"https://api.github.com/users/heldersepu/events{/privacy}","received_events_url":"https://api.github.com/users/heldersepu/received_events","type":"User","site_admin":false},"created_at":"2018-02-19T16:49:13Z","updated_at":"2018-02-19T16:49:13Z","author_association":"CONTRIBUTOR","body":"The format property is not really ignored is using in the validation, try [this](http://swagger-net-test.azurewebsites.net/swagger/ui/index?filter=Attribute#/Attribute/Attribute_GetAttribData)\r\nif you try to submit a non GUID value the UI will scream \"ERROR\"\r\n![image](https://user-images.githubusercontent.com/545474/36388605-7041ce8e-156a-11e8-9857-9deb302e771b.png)\r\n\r\n\r\nYou mention:  \r\n>The strings yyyy-mm-dd or uuid from the API definition above should be displayed somewhere.\r\n\r\nWhere would you like to see that?"}}
{"actor":{"display_login":"heldersepu"}}