---
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
api_name: liquid
---

# Unique​Doc​Param​Names

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.

***
