RestDocs does double documentation on request parameters

◇◆丶佛笑我妖孽 提交于 2019-12-02 04:35:46

It's a bug that's been fixed in 1.1.2.RELEASE. Upgrading will resolve the problem. When upgrading make sure that you get 1.1.2 of both spring-restdocs-mockmvc and spring-restdocs-core. The latter module is where the fix is.

We get "double documentation" when we set a query param (see block below) to an empty string (""):

GET /Thing/OtherThing/Foo/?thinger=FOO&block=&bla=5&block= HTTP/1.1

We use Spring Boot 1.5.2 and Spring REST Docs 1.1.2.RELEASE.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!