Genex
04/02/2025, 4:46 PMVapi Support Bot
04/02/2025, 4:48 PMadditionalProperties: false
to the function schema might help resolve schema validation errors.
For example:
json
{
name: "yourFunctionName",
function: {
parameters: {
type: "object",
properties: {
// your existing properties here
},
required: ["your_required_fields"],
additionalProperties: false // Add this line
}
}
}
### 2. Alternative Integration Options
Instead of using the scaffolded OpenAPI implementation, you might consider:
- Using VAPI's C# SDK directly, which is available on [GitHub](https://github.com/VapiAI/server-sdk-csharp)
- Manually creating the API client using HttpClient or RestSharp
- As suggested in a [Discord thread](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1342588929622413312), implementing options as an array in your code instead of setting up an API might be simpler and faster
### 3. Debugging Steps
- Examine the OpenAPI specification at https://api.vapi.ai/api-json
to identify potential issues with enum definitions
- Check for any schema validation errors or format incompatibilities
- Ensure you're using the latest version of NSwag and related packages
### 4. strict
Parameter HandlingVapi Support Bot
04/02/2025, 4:48 PMstrict
parameter in VAPI's tool calling schema might be related to incorrect schema validation. According to [Discord information](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1326276427628154920), if the strict
parameter is not being passed down correctly, it can lead to validation errors.
Do any of these approaches seem like they might work for your situation? I'd be happy to discuss more specific aspects of these potential solutions!
Sources:
- [Discord thread about schema validation](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1341487904677167114)
- [VAPI C# SDK](https://github.com/VapiAI/server-sdk-csharp)
- [Discord thread about alternative implementation](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1342588929622413312)
- [Discord thread about strict parameter handling](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1326276427628154920)Vapi Support Bot
04/02/2025, 4:53 PMGenex
04/02/2025, 5:01 PMVapi
04/06/2025, 9:18 AMGenex
04/06/2025, 6:25 PMVapi
04/07/2025, 2:44 PM