--- title: UnrecognizedRenderSnippetArguments description: Ensures no unknown arguments are provided when rendering a snippet. source_url: html: https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/unrecognized-render-snippet-arguments md: https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/unrecognized-render-snippet-arguments.md --- ExpandOn this page * [Examples](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/unrecognized-render-snippet-arguments#examples) * [Options](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/unrecognized-render-snippet-arguments#options) * [Disabling this check](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/unrecognized-render-snippet-arguments#disabling-this-check) # UnrecognizedRenderSnippetArguments All arguments provided when rendering a snippet must match the arguments defined in that snippet's [LiquidDoc](https://shopify.dev/docs/storefronts/themes/tools/liquid-doc). *** ## Examples The following examples contain code snippets that either fail or pass this check. All examples refer to the following snippet that defines two parameters (one optional, indentified by square brackets; one required). ## 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 with an unrecognized argument: ## sections/section.liquid ```liquid {% render 'example-snippet', some_str: 'text', some_num: 1, some_bool: false %} ``` ### ✓ Pass In the following example, the snippet is being rendered with recognized argument: ## 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 UnrecognizedRenderSnippetArguments: 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. *** * [Examples](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/unrecognized-render-snippet-arguments#examples) * [Options](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/unrecognized-render-snippet-arguments#options) * [Disabling this check](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/unrecognized-render-snippet-arguments#disabling-this-check)