public interface SettingsValidator
Example:
 public class MyValidator implements SettingsValidator {
     @Override
     public void validate(Settings settings, SettingsValidationErrors errors, Scope scope {
          if (settings.getString("url", "").isEmpty()) {
              errors.addFieldError("url", "Url field is blank, please supply one"));
          }
     }
 }
 | Modifier and Type | Method and Description | 
|---|---|
| void | validate(com.atlassian.bitbucket.setting.Settings settings,
        SettingsValidationErrors errors,
        com.atlassian.bitbucket.scope.Scope scope)Validate the given  settingsbefore they are persisted. | 
void validate(@Nonnull com.atlassian.bitbucket.setting.Settings settings, @Nonnull SettingsValidationErrors errors, @Nonnull com.atlassian.bitbucket.scope.Scope scope)
settings before they are persisted.settings - to be validatederrors - callback for reporting validation errors.scope - the context Repository the settings will be associated withCopyright © 2024 Atlassian. All rights reserved.