vibe.runtime_models.template

Template bundle validation models.

Provides Pydantic models for validating: - Template bundle metadata (config.yml structure) - Component descriptors and mappings - Template dependencies and versioning - VFS paths and source identifiers

These models are used by the TemplateDataProvider when loading templates from filesystem, Git, or embedded sources.

TemplateBundleMetadataModel

Validation model for template bundle metadata (config.yml).

Uses FlexibleModel to allow template-specific extensions while validating core metadata fields.

validate_title

validate_title(v: str) -> str

Ensure title is non-empty.

ComponentReferenceModel

Validation model for component references in templates.

Components can be referenced by ID path and may include default values.

validate_component_id

validate_component_id(v: str) -> str

Ensure component_id is non-empty.

VFSPathModel

Validation model for Virtual File System paths.

VFS paths can reference files in filesystem, Git repos, or embedded data.

validate_path

validate_path(v: str) -> str

Ensure path is non-empty.