Twenty JSON Schemas
This directory contains JSON Schema definitions for Twenty application manifests and agent configurations. These schemas provide validation, autocomplete, and documentation for developers building Twenty applications.
Schema URLs
The schemas are published at the following URLs for public access:
- App Manifest:
https://raw.githubusercontent.com/twentyhq/twenty/main/packages/twenty-cli/schemas/app-manifest.schema.json - Agent:
https://raw.githubusercontent.com/twentyhq/twenty/main/packages/twenty-cli/schemas/agent.schema.json
IDE Support
VS Code
VS Code automatically provides IntelliSense, validation, and hover documentation when you include the $schema property in your JSONC files:
{
"$schema": "https://raw.githubusercontent.com/twentyhq/twenty/main/packages/twenty-cli/schemas/app-manifest.schema.json",
"standardId": "550e8400-e29b-41d4-a716-446655440000",
"label": "My App",
// ... rest of your manifest
}
Other IDEs
Most modern IDEs that support JSON Schema will work with these schemas:
- IntelliJ IDEA / WebStorm
- Sublime Text (with LSP)
- Vim/Neovim (with LSP)
- Emacs (with LSP)
Schema Features
Validation
The schemas provide comprehensive validation including:
- Required fields: Ensures all mandatory properties are present
- Type checking: Validates data types (string, number, object, array)
- Format validation: UUID patterns, version formats, naming conventions
- Enum constraints: Restricts values to allowed options (e.g., model IDs)
- Length constraints: Minimum/maximum lengths for strings and arrays
Documentation
Each property includes:
- Human-readable descriptions
- Usage examples
- Validation rules
- Default values where applicable
CLI Integration
The Twenty CLI automatically:
- Validates all manifests and agent files against these schemas
- Generates new files with proper
$schemareferences - Provides helpful error messages when validation fails
Development Workflow
- Create your app with
twenty app init my-app - Edit the generated JSONC files with full IDE support
- Validate automatically when running CLI commands
- Deploy with confidence knowing your configuration is valid
Schema Versioning
Schemas are versioned alongside the Twenty CLI. Breaking changes will:
- Be documented in release notes
- Include migration guides
- Maintain backward compatibility when possible
Contributing
When updating schemas:
- Update the schema files in this directory
- Test with real manifests and agents
- Update examples and documentation
- Ensure backward compatibility or provide migration path
The schemas are automatically published to GitHub raw URLs when merged to main.