Add array of objects in the resource samples

Greetings

I’m trying to add an array of objects as a sample in the operation response to be displayed in the API Portal, but every time I add the array of object in the sample, it does not displayed in the portal. However once removing [] of the array and republish the API to the portal, the response displayed with no issue.

sample of response I’m trying to display:

[
   {
      "fullName":"some text",
      "displayName":"some text",
      "categoryName":"some text"
   },
   {
      "fullName":"some text",
      "displayName":"some text",
      "categoryName":"some text"
   }
]

Once removing the [] from the response, it displayed successfully.

Any suggestions?
Thanks in advance

Hi Mohamed,
Can you please let me know which version you are trying this?

Regards.

Hi Prabavathy,

I’m using API gateway version 10.7

Hi Mohamed,
It looks like a bug. We will check and update.

Regards.

@Prabaa

any updates?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.