Ensures that a JSON template file includes block types that reference valid files and are declared at the root level of their associated schema. ## Examples The following example contains code snippets that either fail or pass this check. ### ✗ Fail In the following example, the JSON template file references a block type that doesn't exist. There's no corresponding `invalid-block.liquid` file in the `blocks` directory for the theme:

### ✗ Fail In the following example, the JSON template file references a block type that exists, but is not declared at the root level of the `custom-section` liquid section schema:

### ✗ Fail In the following example, the JSON template file references a block type that exists, but isn't declared at the root level of the `text` liquid block schema:

### ✓ Pass In the following example, the JSON template file references a block type that exists, and is declared at the root level of the `custom-section` liquid section schema:

### ✓ Pass In the following example, the JSON template file references a block type that exists, and is declared at the root level of the `text` liquid block schema:

## Options The following example contains the default configuration for this check: ```yaml JSONMissingBlock: enabled: true severity: error ``` | Parameter | Description | | --- | --- | | `enabled` | Whether this check is enabled. | | `severity` | The [severity](/docs/storefronts/themes/tools/theme-check/configuration#check-severity) of the check. | ## Disabling this check Disabling this check isn't recommended.