⚡ YAML Schema Validation
Configure your IDE to validate all YAML files using the local schema.json file located in the project root of your Loopstack application.
Why This Matters for Loopstack Workflows
When building Loopstack workflow configurations in YAML, schema validation catches errors before runtime. Your IDE will autocomplete valid properties, highlight mistakes immediately, and show inline documentation—making workflow development faster and less error-prone.
JetBrains IDEs (WebStorm, IntelliJ IDEA)
1. Open Settings
- Windows/Linux: File → Settings
- macOS: WebStorm/IntelliJ IDEA → Preferences
- Navigate to: Languages & Frameworks → Schemas and DTDs → JSON Schema Mappings
2. Add Schema Mapping
- Click the + button
- Configure:
- Name:
Loopstack YAML Schema - Schema file or URL: Browse to your
schema.jsonin project root - Schema version:
JSON Schema version 7
3. Add File Patterns
- Click + in the file path patterns section
- Add pattern:
**/*.yaml - Click + again and add:
**/*.yml - Click OK to save
Visual Studio Code
1. Install YAML Extension
- Open Extensions (
Ctrl+Shift+XorCmd+Shift+X) - Search for YAML by Red Hat
- Install
2. Configure Workspace Settings
Create or edit .vscode/settings.json in your project root:
{
"yaml.schemas": {
"./schema.json": [
"**/*.yaml",
"**/*.yml"
]
}
}3. Reload Window
- Open Command Palette (
Ctrl+Shift+PorCmd+Shift+P) - Type: Developer: Reload Window
Result
Both IDEs will now provide:
- Real-time validation for all YAML files
- Autocomplete suggestions
- Inline error highlighting
- Schema documentation on hover
Last updated on