Packages

package validation

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. validation
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Package Members

  1. package constraints

Type Members

  1. case class InvalidCaseClassException(clazz: Class[_]) extends ValidationException with Product with Serializable
  2. class ValidatorModule extends TwitterModule

    A TwitterModule to provide a ScalaValidator with default jakarta.validation.ConstraintValidators.

    A TwitterModule to provide a ScalaValidator with default jakarta.validation.ConstraintValidators.

    Extend this module to override defaults of the bound ScalaValidator instance.

    Example:

       import com.twitter.finatra.validation.{ScalaValidator, ValidatorModule}
       import com.twitter.inject.Injector
    
       object CustomizedValidatorModule extends ValidatorModule {
         override def configureValidator(injector: Injector, builder: ScalaValidator.Builder): ScalaValidator.Builder =
           builder
             .withDescriptorCacheSize(512)
             .withConstraintMapping(???)
    }

Deprecated Type Members

  1. trait ErrorCode extends Payload

    A descriptor for the type of validation error.

    A descriptor for the type of validation error. May be pattern-matched to customize handling of specific errors.

    Annotations
    @deprecated
    Deprecated

    (Since version 2021-03-25) No replacement.

  2. type MethodValidation = com.twitter.util.validation.MethodValidation @scala.annotation.meta.param
    Annotations
    @deprecated
    Deprecated

    (Since version 2021-03-05) Use com.twitter.util.validation.MethodValidation

  3. type ValidationResult = MethodValidationResult
    Annotations
    @deprecated
    Deprecated

    (Since version 2021-03-25) Use com.twitter.util.validation.MethodValidationResult

Value Members

  1. object ValidatorModule extends ValidatorModule

Deprecated Value Members

  1. object CommonMethodValidations
    Annotations
    @deprecated
    Deprecated

    (Since version 2021-03-05) Users should prefer to use standard class-level constraints or cross-parameter constraints.

  2. object ErrorCode

    Users can obtain the same information by inspecting returned ConstraintViolation instances.

    Users can obtain the same information by inspecting returned ConstraintViolation instances. The invalid value is returned from violation#getInvalidValue and the configured annotation which specified configuration values can be obtained from violation#getConstraintDescriptor#getAnnotation.

    Annotations
    @deprecated
    Deprecated

    (Since version 2021-03-25) No replacement.

  3. object ValidationResult
    Annotations
    @deprecated
    Deprecated

    (Since version 2021-03-25) Use com.twitter.util.validation.MethodValidationResult

Inherited from AnyRef

Inherited from Any

Ungrouped