EXAMPLE
Schema Validation
Validate YAML files against JSON Schemas from three sources — a local file, a remote URL, and an inline schema — before anything runs.
Try it out
- Install Atmos
- Try the example
Copy the example into a new directory and make it your own:
atmos init examples/demo-schemas
cd demo-schemas
Follow the README for prerequisites and next steps.
See it in action
RECORDED DEMO Real commands. Real output.
README.md1.4 KB
View on GitHubExample: Demo Schemas
Validate YAML files against JSON Schema before using them in your workflows.
Learn more about Validation.
What You'll See
- Schema from file - local JSON Schema
- Schema from internet - fetch from URL (schemastore.org)
- Inline schema - embedded in atmos.yaml
Try It
cd examples/demo-schemas# Validate all matched files against their schemasatmos validate schema
Key Files
| File | Purpose |
|---|---|
atmos.yaml | Schema definitions with three source types |
manifest.json | Local JSON Schema file |
config.yaml | Validated against local schema |
bower.yaml | Validated against remote schema |
inline.yaml | Validated against inline schema |