public function validateId($id, ?string $propertyPath = null): void
    {
        $this->validate(
            $id,
            [
                new Constraints\NotBlank(),
                new Constraints\Type(['type' => 'scalar']),
            ],
            $propertyPath
        );
    }