{"action":"opened","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/2436","repository_url":"https://api.github.com/repos/swagger-api/swagger-ui","labels_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/2436/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/2436/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/2436/events","html_url":"https://github.com/swagger-api/swagger-ui/issues/2436","id":180443006,"number":2436,"title":"Model rendering does not respect minimum value","user":{"login":"vanderlee","id":649240,"avatar_url":"https://avatars.githubusercontent.com/u/649240?v=3","gravatar_id":"","url":"https://api.github.com/users/vanderlee","html_url":"https://github.com/vanderlee","followers_url":"https://api.github.com/users/vanderlee/followers","following_url":"https://api.github.com/users/vanderlee/following{/other_user}","gists_url":"https://api.github.com/users/vanderlee/gists{/gist_id}","starred_url":"https://api.github.com/users/vanderlee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vanderlee/subscriptions","organizations_url":"https://api.github.com/users/vanderlee/orgs","repos_url":"https://api.github.com/users/vanderlee/repos","events_url":"https://api.github.com/users/vanderlee/events{/privacy}","received_events_url":"https://api.github.com/users/vanderlee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-01T07:11:55Z","updated_at":"2016-10-01T07:11:55Z","closed_at":null,"body":"Actual behaviour: Models are rendered by showing `default` values.\r\nIf no `default` is specified, `0` is used instead, even if a `minimum` is set that does not allow `0`.\r\n\r\nExpected behaviour: Set the value closest to `0` that is allowed by the `minimum` (et al.) settings.\r\n\r\nSwagger-UI v2.2.5\r\n\r\n```{\r\n    \"swagger\": \"2.0\",\r\n    \"info\": {\r\n        \"title\": \"Demo\",\r\n        \"version\": \"v1.0.0\"\r\n    },\r\n    \"paths\": {\r\n        \"\\/resources\": {\r\n            \"get\": {\r\n                \"responses\": {\r\n                    \"200\": {\r\n                        \"description\": \"OK\",\r\n                        \"schema\": {\r\n                            \"type\": \"array\",\r\n                            \"items\": {\r\n                                \"$ref\": \"#\\/definitions\\/Field\"\r\n                            }\r\n                        }\r\n                    }\r\n                }\r\n            }\r\n        }\r\n    },\r\n    \"definitions\": {\r\n        \"Field\": {\r\n            \"type\": \"object\",\r\n            \"properties\": {\r\n                \"id\": {\r\n                    \"format\": \"int64\",\r\n                    \"minimum\": 1\r\n                }\r\n           }\r\n        }\r\n    },\r\n}```"}}
{"actor":{"display_login":"vanderlee"}}