---
title: ValidSchemaName
description: Identifies when the schema name property is invalid
source_url:
  html: >-
    https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/valid-schema-name
  md: >-
    https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/valid-schema-name.md
---

# ValidSchemaName

Makes sure that the schema name property doesn't exceed the 25 character limit, including when the name is a translation key that resolves to a value in the default schema locale file.

To verify that schema translation keys resolve to an entry in the default schema locale file, see [ValidSchemaTranslations](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/valid-schema-translations).

***

## Examples

The following examples contain code snippets that either fail or pass this check.

### ✗ Fail

In the following example, the schema name value exceeds the 25 character limit:

```liquid
{% schema %}
"name": "This name is too long because it exceeds the 25 character limit."
{% endschema %}
```

### ✓ Pass

In the following example, the schema name value is within the 25 character limit:

```liquid
{% schema %}
"name": "A concise name"
{% endschema %}
```

### ✗ Fail

In the following example, the translation key `my-translation-key` in the `locales` default schema JSON file has a translation value that exceeds the 25 character limit:

```liquid
{% schema %}
"name": "t:my-translation-key"
{% endschema %}
```

```json
{
  "my-translation-key": "My overly long translation that exceeds the 25 character limit."
}
```

### ✓ Pass

In the following example, the translation key `my-translation-key` in the `locales` default schema JSON file has a translation value that doesn't exceed the 25 character limit:

```liquid
{% schema %}
name: "t:my-translation-key"
{% endschema %}
```

```json
{
  "my-translation-key": "My translation"
}
```

***

## Options

The following example contains the default configuration for this check:

```yaml
ValidSchemaName:
  enabled: true
  severity: error
```

| Parameter | Description |
| - | - |
| `enabled` | Whether this check is enabled. |
| `severity` | The [severity](https://shopify.dev/docs/storefronts/themes/tools/theme-check/configuration#check-severity) of the check. |

***

## Disabling this check

Disabling this check isn't recommended.

***
