cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
neilvarnas
Frequent Visitor

Path parameter Swagger definition

Path parameter definition with type array isn't parsed correctly by the Flow UI.
Consider the following definition:
parameters:
- name: "tag"
in: "path"
required: true
type: "array"
items: {type: string}
collectionFormat: multi

 

Flow UI is only displaying a single field for petId which makes it impossible to pass in an array.
The end goal is to end up with a path parameter that is something like this ?tag=x1&tag=x2 etc.

The above definition results in allowing you to add "items" for the tag query parameter which is exactly what I'm after. This makes me think that there is no array handling in Flow/Automate UI.

 

flow definition.PNGflow generated input.PNGflow swagger eq.PNG

 

 

 

 

 

 

4 REPLIES 4
v-bacao-msft
Community Support
Community Support

 

Hi @neilvarnas ,

 

This seems more like a share than an issue, right?🤔

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Not sure what do you mean by share.

Thanks

I have the same problem.
PowerAutomate custom connectors cannot be used in actions, even if you define multiple parameters with the same name.

For example, if you request the following URL with the curl command,
curl -X GET https://xxxxx/api/issues?type=1&type=2

 

In the Swagger definition:

In the Swagger definition:
pahts:
  /api/issues:
    get:
       summary: GetIssues
       description: GetIssues
       parameters:
         - name: type
         - in: query
         - type: array
         - collectionFormat: multi
         - items: {type: integer}

After creating a custom connector, issuing a request in a test operation will result in the following:
https://xxxxx/api/issues?type=%5B1%2C2%5D

 

Instead of escaping [1, 2], we expect
https://xxxxx/api/issues?type=1&type=2

After many emails back and forth, Ms support said it's the way it works and they don't "support explosive arrays".

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Users online (1,659)