RestDocs does double documentation on request parameters

后端 未结 2 681
我在风中等你
我在风中等你 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: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.

提交回复
热议问题