spring-cloud-contract icon indicating copy to clipboard operation
spring-cloud-contract copied to clipboard

Cannot test simple string JSON responses

Open laffuste opened this issue 9 years ago • 2 comments

This has been already raised in stackoverflow.

Apparently, the only way to test simple strings is to change the content type of the response to "plain/text". However, simple strings are valid JSON. In most cases it won't be acceptable to change the content type only for those responses returning single strings and thus the test/contract has to be skipped.

laffuste avatar Oct 23 '17 03:10 laffuste

Hi,

Would it be possible to schedule this bugfix for 1.2.*?

Thanks!

laffuste avatar Nov 29 '17 09:11 laffuste

Isn't it there in the latest release? If not then i doubt that we will make another sr of dalston so i guess you'll need to upgrade

marcingrzejszczak avatar Nov 29 '17 09:11 marcingrzejszczak