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
Describe the bug
The stub response body is incorrect if the content-type "application/x-ndjson" is used. An identical problem has been described in #1535.
"application/stream+json" has been deprecated and my team is using "application/x-ndjson" instead (recommendation in the spring restdocs). As mentioned in #1535 the generated stub only returns the first element now.
You can reproduce the issue by changing the content-type to "application/x-ndjson" in the following test:
@Issue("#1535")
def "should work with streams"() {
given:
Contract contractDsl = Contract.make {
description "should return all entities"
request{
method GET()
url("/api/v1/entities")
}
response {
headers {
header 'Content-Type': 'application/stream+json'
The text was updated successfully, but these errors were encountered:
Describe the bug
The stub response body is incorrect if the content-type "application/x-ndjson" is used. An identical problem has been described in #1535.
"application/stream+json" has been deprecated and my team is using "application/x-ndjson" instead (recommendation in the spring restdocs). As mentioned in #1535 the generated stub only returns the first element now.
You can reproduce the issue by changing the content-type to "application/x-ndjson" in the following test:
The text was updated successfully, but these errors were encountered: