### If you read this article, then your http response in Swagger UI contains rounded `Long` values, e.g. You are expect ```json { "id": 1111111111111111111 } ``` But got ```json { "id": 1111111111111111200 } ``` ### To proceed with steps, you should have installed 1. Java 2. Maven 3. Nodejs 4. Git #### UI part 1. Clone repository https://github.com/swagger-api/swagger-ui and checkout required version tag. 1. Install dependencies: `npm install` 1. Install additional dependency https://github.com/sidorares/json-bigint `npm install json-bigint` 1. Navigate to [response-body.jsx](https://github.com/swagger-api/swagger-ui/blob/52693254e920e5376d4386d2968e936d66c8af9c/src/core/components/response-body.jsx) 1. Add import json-bigint ```js import JSONbig from "json-bigint" ``` 1. Change the [row in response-body.jsx](https://github.com/swagger-api/swagger-ui/blob/52693254e920e5376d4386d2968e936d66c8af9c/src/core/components/response-body.jsx#L25) ```js body = JSON.stringify(JSON.parse(content), null, " ") ``` should be changed to this one ```js body = JSONbig.stringify(JSONbig.parse(content), null, " ") ``` 1. Build project `npr run build` - you will get compiled project `dist` directory. #### java part 1. Clone https://github.com/webjars/swagger-ui 2. Create new directory in project like `ui` 3. Copy `dist` (you have got it after build UI project) to `ui` directory 4. Edit pom.xml ```xml com.myawesome.group.name ... https://github.com/webjars/swagger-ui scm:git:https://github.com/webjars/swagger-ui.git scm:git:https://github.com/webjars/swagger-ui.git HEAD ... ... org.sonatype.plugins nexus-staging-maven-plugin 1.6.13 true sonatype-nexus-staging https://oss.sonatype.org/ true ``` 5. Build maven project `mvn install` - to test localy or `mvn deploy` to push it to registry. (!) after build `ui/dist` - will be cleaned up. Copy `dist` directroy once again or change ant command to `copy` instaed of `move` ### Next steps you shoud do in your project 1. In **your awesome project** add exclusion of webjars:swagger-ui. Edit pom.xml ```xml org.springdoc springdoc-openapi-ui org.webjars swagger-ui ``` 1. Instead of org.webjars:swagger-ui - add new dependecy that you build abowe ```xml com.myawesome.group.name swagger-ui ``` Run your project and enjoy.