USING THE CLI
Parse
Validate your semantic model YAML definitions
Parse and Validate Semantic Models
The buster parse
command validates your semantic model YAML definitions to ensure they are correctly formatted and contain all required fields. This is an essential step before deploying models to the Buster platform.
Basic Usage
Command Options
Option | Description |
---|---|
--path PATH | Optional path to a specific model .yml file or directory of models to validate. If not provided, uses settings from buster.yml or the current directory. |
What the Parse Command Does
When you run buster parse
, the command:
- Searches for semantic model YAML files in the specified path or configuration
- Parses each file to verify its syntax and structure
- Validates that all required fields are present
- Checks for description placeholders that need to be replaced with actual content
- Resolves model configurations with defaults from your buster.yml file
- Reports any errors or warnings it encounters
Validation Checks
The command performs several types of checks:
- Syntax validation: Ensures the YAML is correctly formatted
- Schema validation: Verifies that models follow the Buster semantic model schema
- Field validation: Checks that required fields are present (name, data_source_name, schema)
- Description validation: Identifies any placeholder descriptions that need to be replaced
- Reference validation: Ensures relationships reference valid models and dimensions
Output
The command provides a detailed report including:
- Total files scanned
- Files processed and excluded
- Models successfully parsed
- Models with errors
- Lists of successful models and errors encountered
Examples
Validate All Models
Parse and validate all semantic models according to buster.yml configuration:
Validate Specific File
Parse and validate a specific semantic model file:
Validate Models in Directory
Parse and validate all model files in a specific directory:
Error Messages
Common error messages you might encounter:
- Missing required field: A critical field like name, data_source_name, or schema is missing
- Invalid format: The YAML syntax is incorrect
- Placeholder description: A description contains "" placeholder text
- Duplicate names: Multiple models or dimensions have the same name
- Configuration resolution failure: Cannot resolve configurations with buster.yml defaults
Integration with Workflow
The parse command is typically used in this workflow sequence:
- Generate models with
buster generate
- Validate models with
buster parse
- Fix any validation errors
- Deploy models with
buster deploy
Best Practices
- Run Before Deployment: Always run parse before deploying to catch issues early
- Address All Warnings: Fix placeholder descriptions and other warnings for better usability
- Version Control: Commit only validated model files to your repository
- Continuous Integration: Include the parse command in CI workflows to catch issues automatically