RestDocs does double documentation on request parameters

后端 未结 2 648
我在风中等你
我在风中等你 2021-01-25 08:35

Using RestDocs version 1.1.1.RELEASE and SpringBoot 1.4.0.RELEASE, parameters when using \"httpRequest\" is documented double.

The following code:

@RunWi         


        
相关标签:
2条回答
  • 2021-01-25 09:19

    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.

    0 讨论(0)
  • 2021-01-25 09:24

    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.

    0 讨论(0)
提交回复
热议问题