--- title: UniqueDocParamNames description: Ensures names of parameters defined in LiquidDoc are unique. source_url: html: https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/unique-doc-param-names md: https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/unique-doc-param-names.md --- ExpandOn this page * [Examples](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/unique-doc-param-names#examples) * [Options](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/unique-doc-param-names#options) * [Disabling this check](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/unique-doc-param-names#disabling-this-check) # UniqueDocParamNames Each parameter defined in [LiquidDoc](https://shopify.dev/docs/storefronts/themes/tools/liquid-doc) needs to have a unique name. *** ## Examples The following examples contain code snippets that either fail or pass this check. ### ✗ Fail In the following example, there are two parameters defined in LiquidDoc with the same name: ```liquid {% doc %} @param {string} some_input @param {number} some_input {% enddoc %} ``` ### ✓ Pass In the following example, all the parameters in LiquidDoc have different names: ```liquid {% doc %} @param {string} some_str @param {number} some_num {% enddoc %} ``` *** ## Options The following example contains the default configuration for this check: ```yaml UniqueDocParamNames: 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. *** * [Examples](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/unique-doc-param-names#examples) * [Options](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/unique-doc-param-names#options) * [Disabling this check](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/unique-doc-param-names#disabling-this-check)