code: @Override
      public void validate(ValidationHelper helper, Context context, String key, Discriminator t) {
  
          if (t != null) {
              ValidatorUtils.validateRequiredField(t.getPropertyName(), context, "propertyName").ifPresent(helper::addValidationEvent);
          }
      }
docs: {@inheritDoc}