Bug • Structured Output's "Type: Array"
# support
o
https://dashboard.vapi.ai/structured-outputs 1. You can't see the Array type show up as an available pre-made structured output unless you type in "array". 2. If you try to change ANYTHING, it will throw an error → "**value** - missing item type configuration" + plus it randomly deletes added items for no reason. Pls fix ❤️ https://cdn.discordapp.com/attachments/1453391038327685246/1453391038604644406/image.png?ex=69815aa2&is=69800922&hm=8e8abe709e819366d0d225d037bd70ff48bc62092fefd755a15bad09dbed3059& https://cdn.discordapp.com/attachments/1453391038327685246/1453391039028007098/image.png?ex=69815aa2&is=69800922&hm=80de9f99506351916e1140e86d7f2e76700f90f11010db9c764f9719e1270464&
v
To resolve the "missing item type configuration" error, make sure your array schema includes an
items
property that defines the type of each array element. For example, to create an array of product names, use:
Copy code
json
{
  "type": "array",
  "items": { "type": "string" },
  "description": "List of product names mentioned"
}
You can apply this schema directly in the dashboard or via the API to avoid the error. For more details, see the [structured outputs documentation](https://docs.vapi.ai/assistants/structured-outputs-examples). Source: - [Structured outputs examples](https://docs.vapi.ai/assistants/structured-outputs-examples)
c
Hi, thanks for pointing out. I have shared this with the team.
j
Hey Aditya, is there any updates on this?
c
Hey! Thanks for checking in. We don’t have an update just yet, but the team is actively working on this and should have it resolved shortly. In the meantime, as a workaround, please try creating the array structured output from scratch (rather than editing an existing one). That should work for now.
2 Views