Skip to content

feat: Update OpenAPI spec for agent definition validation#438

Open
khushalsonawat wants to merge 2 commits intodevfrom
feat/agent-definition-openapi-validation
Open

feat: Update OpenAPI spec for agent definition validation#438
khushalsonawat wants to merge 2 commits intodevfrom
feat/agent-definition-openapi-validation

Conversation

@khushalsonawat
Copy link
Copy Markdown
Contributor

Summary

  • Update createAgentDefinition request schema required fields to: agentName, agentType, languages, description, commitMessage, inbound
  • Add languages field (array, minItems: 1) to request and response schemas
  • Add minLength/maxLength constraints to agentName, description, commitMessage
  • Update provider enum to include eleven_labs and others
  • Add contactNumber pattern validation (^\+?\d{10,15}$)
  • Remove incorrect format: uuid from apiKey
  • Add default: true to inbound
  • Update AgentDefinition component schema with enum/pattern/length constraints

Reflects backend validation added in the companion PR.

Test plan

  • Verify OpenAPI spec renders correctly on docs site after deploy
  • Validate JSON schema is well-formed (validated locally with json.load)

Companion PR: https://github.com/future-agi/core-backend/pull/2274

🤖 Generated with Claude Code

Update createAgentDefinition request schema and AgentDefinition component
schema to reflect new backend validation rules:

- Required fields: agentName, agentType, languages, description, commitMessage, inbound
- Added languages field (array, minItems: 1)
- Added minLength/maxLength to agentName, description, commitMessage
- Updated provider enum to include eleven_labs and others
- Added contactNumber pattern (digits, 10-15 length)
- Removed incorrect format: uuid from apiKey
- Added default: true to inbound
@khushalsonawat khushalsonawat self-assigned this Mar 3, 2026
Update provider description to note it's required for all voice agents
and that outbound calls only support the vapi provider.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants