cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Tom4U
Regular Visitor

Swagger file definiton for object/array response

I'm trying to realize a connector for easyBill REST API

 

Now the problem starts for Definitions like Customers (see code below).

 

I already validated on swagger.io

 

But if I use it for custom connector schema validation fails resolving properly with objects/collections like these.

 

Is this kind of object not supported?

 

"definitions": {
    "List": {...},
    "Customer": {...},
    "Customers": {
      "type": "object",
      "allOf": [
        {
          "$ref": "#/definitions/List"
        },
        {
          "properties": {
            "items": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/Customer"
              }
            }
          }
        }
      ]
    },
4 REPLIES 4
v-micsh-msft
Community Support
Community Support

Hi @Tom4U,

 

I think it should be the definition error.

Besides, would it be possible to define the customers as an array, which items configured to Customer?

 

Regards,

 

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

Sorry, but I don't really get your questions. Customers is already an array. Also customizing is no possibility as this is not my API description file and therefore should stay as it is.

What do you mean by "which items configured to Customer"?

 

Cheers

Hi @Tom4U, we don't support the "allOf" syntax in Flow designer/backend. Are you not able to get this working without the allOf ? Can you show us how the sample data looks like fr the definition Customers ?

Hi, is allOf keyword still not supported when using the designer?

I get an "unable to resolve schema" error in the tests section and I cannot see a list of result fields when working on the connector.

 

Can someone explain in the example above how would we have the swagger definition without including the allOf keyword?

Thanks

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
Top Kudoed Authors
Users online (1,565)