---
title: MissingRenderSnippetArguments
description: Ensures all required arguments are provided when rendering a snippet.
source_url:
  html: >-
    https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/missing-render-snippet-arguments
  md: >-
    https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/missing-render-snippet-arguments.md
api_name: liquid
---

# Missing​Render​Snippet​Arguments

All required arguments defined in a snippet file's [LiquidDoc](https://shopify.dev/docs/storefronts/themes/tools/liquid-doc) must be provided when rendering that snippet.

***

## Examples

The following examples contain code snippets that either pass or fail this check. Each example references this base snippet, which defines two parameters: one required and one optional (identified by square brackets).

## snippets/example-snippet.liquid

```liquid
{% doc %}
  @param {string} some_str
  @param {number} [some_num]
{% enddoc %}
```

### ✗ Fail

In the following example, the snippet is being rendered without the required argument:

## sections/section.liquid

```liquid
{% render 'example-snippet', some_num: 1 %}
```

### ✓ Pass

In the following example, the required argument is being provided, but the optional argument is not:

## sections/section.liquid

```liquid
{% render 'example-snippet', some_str: 'text' %}
```

### ✓ Pass

In the following example, the required argument and the optional argument is being provided:

## sections/section.liquid

```liquid
{% render 'example-snippet', some_str: 'text', some_num: 1 %}
```

***

## Options

The following example contains the default configuration for this check:

```yaml
MissingRenderSnippetArguments:
enabled: true
severity: warning
```

| 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.

***
