You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my mind, the issue #639 does not seem to be finished.
We have an exception, with spring-restdocs.version in version 2.0.4.RELEASE, when try to generate documentation for an endpoint that returns
return ResponseEntity.status(215).body(elements)
The exception :
java.lang.NullPointerException
at org.springframework.restdocs.http.HttpResponseSnippet.createModel(HttpResponseSnippet.java:62)
at org.springframework.restdocs.snippet.TemplatedSnippet.document(TemplatedSnippet.java:78)
at org.springframework.restdocs.generate.RestDocumentationGenerator.handle(RestDocumentationGenerator.java:191)
at org.springframework.restdocs.mockmvc.RestDocumentationResultHandler.handle(RestDocumentationResultHandler.java:52)
at org.springframework.test.web.servlet.MockMvc.applyDefaultResultActions(MockMvc.java:224)
at org.springframework.test.web.servlet.MockMvc.perform(MockMvc.java:190)
The text was updated successfully, but these errors were encountered:
wilkinsona
changed the title
NPE : Responses with custom HTTP statuses cannot be documented
NPE in HttpResponseSnippet when documenting a response with a custom HTTP status
Oct 17, 2019
Hello,
In my mind, the issue #639 does not seem to be finished.
We have an exception, with spring-restdocs.version in version 2.0.4.RELEASE, when try to generate documentation for an endpoint that returns
The exception :
The text was updated successfully, but these errors were encountered: