Forum Discussion

youvalMonalabs's avatar
youvalMonalabs
New Contributor
3 years ago

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

1 Reply

  • Best will be if I can have this three keys as strings:

     

    "commit_message""string",
    "author""string",
    "context_class""string",
     
    and then have the "config" key allow file upload, like it does in other paths I have like in the screenshot