src/Validation/Spec/CreateResourceValidator.php
protected function validateId(): bool
    {
        if (!$this->dataHas('id')) {
            return true;
        }

        $valid = $this->validateIdMember($this->dataGet('id'), '/data');

        if (!$this->supportsClientIds()) {
            $valid = false;
            $this->resourceDoesNotSupportClientIds($this->expectedType);
        }

        return $valid;
    }
protected function validateId(): bool
    {
        if (!$this->dataHas('id')) {
            return true;
        }

        $valid = $this->validateIdMember($this->dataGet('id'), '/data');

        if (!$this->supportsClientIds()) {
            $valid = false;
            $this->resourceDoesNotSupportClientIds($this->expectedType);
        }

        return $valid;
    }
Validate the resource id.

@return bool