```php
'variants' => ['nullable', 'array'],
'variants.*.name' => ['required', 'string'],
'variants.*.options' => ['required', 'array', 'min:1'],
'variants.*.options.*.code' => ['required', 'string', 'distinct'],

```

I'm having a validation rules above. What I'm trying to achieve is the distinct of the value only for between inner array, but somehow I'm getting an error like this with the input

input:

```json
{
   variants: [
       {
           name: "outer array 1",
           options: [
               {
                  code: "A"
               },
               {
                  code: "B"
               }
           ]
       },
       {
           name: "outer array 2",
           options: [
               {
                  code: "A"
               },
           ]
       }
   ]
}

```

result:

```json
"error": {
        "variants.0.options.0.code": [
            "The variants.0.options.0.code field has a duplicate value."
        ],
        "variants.1.options.0.code": [
            "The variants.1.options.0.code field has a duplicate value."
        ]
    }

```

**Question: Any way to distinct only between the inner array but not every array?**