youvalMonalabs
3 years agoNew Contributor
Adding an object instead of string
Hey all,
I am trying to get a specific request body structure which has 3 string key-values and 1 object key. This key should have a value which is an object (usually a long JSON) but for some reason I keep getting "" in the start and end of the object.
This is what I want to get:
{
"commit_message": "string",
"author": "string",
"context_class": "string",
"config": {
"key_in_object": {
"ineer_key": {
"type": "string"
}
}
}
}
But instead, I am getting this: (see the quotation marks wrapping the "config" object)
{
"commit_message": "string",
"author": "string",
"context_class": "string",
"config": "{
"key_in_object": {
"ineer_key": {
"type": "string"
}
}
}"
}
Attached is a screenshot of the swagger file that is generating this. Happy to send the actual file if needed.
NOTE - when I change the type of the config property to object I need to enter key-value string pares which is not what I want.
Thank you in advance