Hi all,
I creating a custom connector in Power Automation.
The response type of a value from an api function which I call is different. Some properties returns an empty «GlobalValues» and other returns an array of values. As you can see, some properties can have a GlobalValue and others not. The response which I get is like that:

My swagger looks as follow :

If I call the function in flow, I get an error:
The API returned an invalid response for workflow operation 'Get_document' of type 'OpenApiConnection'. Error details: 'The API operation 'GetDocument' requires the property 'body/GetDocumentResult/Properties/0/GlobalValues' to be of type 'String' but is of type 'Array'.
I think the problem is the empty GlobalValue property. Is there a way I can change the response definition (swagger) so that the response can be an array or a string?
All advice appreciated!