{"action":"created","issue":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/13579","repository_url":"https://api.github.com/repos/spring-projects/spring-boot","labels_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/13579/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/13579/comments","events_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/13579/events","html_url":"https://github.com/spring-projects/spring-boot/issues/13579","id":335713749,"node_id":"MDU6SXNzdWUzMzU3MTM3NDk=","number":13579,"title":"not support biginteger when length greate than 16","user":{"login":"damozhiying","id":10277950,"node_id":"MDQ6VXNlcjEwMjc3OTUw","avatar_url":"https://avatars2.githubusercontent.com/u/10277950?v=4","gravatar_id":"","url":"https://api.github.com/users/damozhiying","html_url":"https://github.com/damozhiying","followers_url":"https://api.github.com/users/damozhiying/followers","following_url":"https://api.github.com/users/damozhiying/following{/other_user}","gists_url":"https://api.github.com/users/damozhiying/gists{/gist_id}","starred_url":"https://api.github.com/users/damozhiying/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damozhiying/subscriptions","organizations_url":"https://api.github.com/users/damozhiying/orgs","repos_url":"https://api.github.com/users/damozhiying/repos","events_url":"https://api.github.com/users/damozhiying/events{/privacy}","received_events_url":"https://api.github.com/users/damozhiying/received_events","type":"User","site_admin":false},"labels":[{"id":297028791,"node_id":"MDU6TGFiZWwyOTcwMjg3OTE=","url":"https://api.github.com/repos/spring-projects/spring-boot/labels/status:%20feedback-provided","name":"status: feedback-provided","color":"fef2c0","default":false},{"id":293438798,"node_id":"MDU6TGFiZWwyOTM0Mzg3OTg=","url":"https://api.github.com/repos/spring-projects/spring-boot/labels/status:%20waiting-for-triage","name":"status: waiting-for-triage","color":"fef2c0","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-26T08:35:25Z","updated_at":"2018-06-26T09:46:17Z","closed_at":"2018-06-26T09:46:17Z","author_association":"NONE","body":"```java\r\nimport io.swagger.annotations.ApiOperation;\r\nimport java.math.BigInteger;\r\nimport javax.servlet.http.HttpServletRequest;\r\nimport org.springframework.beans.factory.annotation.Autowired;\r\nimport org.springframework.web.bind.annotation.*;\r\n\r\n@RestController\r\n@RequestMapping(\"/apis/gateway-conf\")\r\npublic class ApiGatewayInfoController {\r\n\r\n@ApiOperation(value = \"获取api网关信息\")\r\n\t@RequestMapping(value = \"/test2\", method = RequestMethod.GET)\r\n\tpublic Zoo getGatewayInfo3() throws DcoosException {\r\n\r\n\t\tBigInteger bi = new BigInteger(\"999999999999999889\");\r\n\t\tZoo z = new Zoo(bi,\"abc\");\r\n\r\n\t\treturn z;\r\n\t}\r\n\t@ApiOperation(value = \"获取api网关信息\")\r\n\t@RequestMapping(value = \"/test3\", method = RequestMethod.GET)\r\n\tpublic BigInteger getGatewayInfo4() throws DcoosException {\r\n\r\n\t\tBigInteger bi = new BigInteger(\"999999999999999889\");\r\n\r\n\t\treturn bi;\r\n\t}\r\n}\r\n```\r\n\r\n```js\r\nresponse body\r\n{\r\n  \"bi\": 999999999999999900,\r\n  \"name\": \"abc\"\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/comments/400248367","html_url":"https://github.com/spring-projects/spring-boot/issues/13579#issuecomment-400248367","issue_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/13579","id":400248367,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDI0ODM2Nw==","user":{"login":"wilkinsona","id":914682,"node_id":"MDQ6VXNlcjkxNDY4Mg==","avatar_url":"https://avatars3.githubusercontent.com/u/914682?v=4","gravatar_id":"","url":"https://api.github.com/users/wilkinsona","html_url":"https://github.com/wilkinsona","followers_url":"https://api.github.com/users/wilkinsona/followers","following_url":"https://api.github.com/users/wilkinsona/following{/other_user}","gists_url":"https://api.github.com/users/wilkinsona/gists{/gist_id}","starred_url":"https://api.github.com/users/wilkinsona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wilkinsona/subscriptions","organizations_url":"https://api.github.com/users/wilkinsona/orgs","repos_url":"https://api.github.com/users/wilkinsona/repos","events_url":"https://api.github.com/users/wilkinsona/events{/privacy}","received_events_url":"https://api.github.com/users/wilkinsona/received_events","type":"User","site_admin":false},"created_at":"2018-06-26T09:46:16Z","updated_at":"2018-06-26T09:46:16Z","author_association":"MEMBER","body":"Thanks. As suspected, this isn't due to Spring Boot. The response is as expected when accessed with curl:\r\n\r\n```\r\n$ curl localhost:8080/apis/gateway-conf/test2\r\n{\"bi\":999999999999999889,\"name\":\"abc\"}\r\n```\r\n\r\nThe problem only occurs when Swagger UI is involved. See https://github.com/swagger-api/swagger-ui/issues/2030."}}
{"actor":{"display_login":"wilkinsona"}}