Skip to main content

atmos validate schema

Use this command to validate files against the rules defined in your schema in atmos.yaml.

Configure Schema Validation

Learn how to configure custom schema validators for YAML files in your atmos.yaml.

Usage

atmos validate schema --help

Execute the validate schema command like this:

atmos validate schema

This command validates files against the formatting rules defined in your .editorconfig file.

tip

Run atmos validate schema --help to see all the available options

Examples

atmos validate schema
atmos validate schema <my_custom_key>

How to set my schema validators?

You need to use the schemas key in atmos config.

schemas:
my_custom_key:
schema: !import https://www.jsonschema.com/example.json # json to be used for validation
matches:
- folder/*.yaml # pattern of the file to be validated

Flags

--schemas-atmos-manifest (optional)
Specifies the path to a JSON schema file used to validate the structure and content of the Atmos manifest file.