gin middleware to automatically generate RESTful API documentation with Swagger 2.0.
3.66k
stars
266
forks
source link
If the field of the struct does not have a json tag, gin returns uppercase, but the document generates lowercase. #303
Open
leavest opened 1 month ago
If the field of the struct does not have a json tag, gin returns uppercase, but the document generates lowercase. for example define struct
Generated document![image](https://github.com/swaggo/gin-swagger/assets/30454841/9bbdf07f-2eeb-4285-9be5-e95d3cb86c58)
But actually![image](https://github.com/swaggo/gin-swagger/assets/30454841/fa21d73f-15e5-40a6-a79e-dd7a55c9ded1)