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
Description
For a given HTTP-POST request, I am trying to stub the JSON response in which one of the property is having stringify / JSON-string value. Also, I have added the schema as type: string in the yaml contract. But the stubbed response I am getting back is a parsed JSON object instead of a JSON-string.
Stubbed JSON response-body:
Steps to reproduce
See above.
Expected behavior
Stubbed response should return the value in json-string or stringify json format.
Screenshots
Actual incorrect response from the stub. Here, expected value of Data property is json-string, but we are getting parsed json-object.
System Information:
OS & version: MacOS 12.7.1
Browser & version: Chrome 124.0.6367.207
Specmatic version: 1.3.19
JDK version: 17.0.10
Additional context
N/A
The text was updated successfully, but these errors were encountered:
Description
For a given HTTP-POST request, I am trying to stub the JSON response in which one of the property is having stringify / JSON-string value. Also, I have added the schema as type: string in the yaml contract. But the stubbed response I am getting back is a parsed JSON object instead of a JSON-string.
Stubbed JSON response-body:
Steps to reproduce
See above.
Expected behavior
Stubbed response should return the value in json-string or stringify json format.
Screenshots
Actual incorrect response from the stub. Here, expected value of Data property is json-string, but we are getting parsed json-object.
System Information:
Additional context
N/A
The text was updated successfully, but these errors were encountered: