src/Validation/Spec/AbstractValidator.php
protected function resourceExists(string $type, string $id, string $path = '/data'): void
    {
        $this->errors->add($this->translator->resourceExists($type, $id, $path));
    }
protected function resourceExists(string $type, string $id, string $path = '/data'): void
    {
        $this->errors->add($this->translator->resourceExists($type, $id, $path));
    }
Add an error for when a resource already exists.

@param string $type
@param string $id
@param string $path
@return void