code: public function validate($value, Constraint $constraint)
      {
          if (null === $value) {
              return;
          }
  
          if(!$value instanceof JobInterface) {
              throw new \InvalidArgumentException('The value must be an instance of '.JobInterface::class);
          }
  
          if(null == $value->getType()) {
              return;
          }
  
          $this->context->getValidator()
              ->inContext($this->context)
              ->atPath('parameters')
              ->validate($value->getParameters(), new AssertJob\Parameters(['type' => $value->getType()]));
  
          return;
      }
docs: {@inheritdoc}