protected function validateResource(): bool
    {
        $identifier = $this->validateTypeAndId();
        $attributes = $this->validateAttributes();
        $relationships = $this->validateRelationships();

        if ($attributes && $relationships) {
            return $this->validateAllFields() && $identifier;
        }

        return $identifier && $attributes && $relationships;
    }