Class RequiredConstraintValidator<T>

    • Constructor Detail

      • RequiredConstraintValidator

        public RequiredConstraintValidator()
    • Method Detail

      • validate

        public void validate​(T actual,
                             io.rxmicro.rest.model.HttpModelType httpModelType,
                             String modelName)
                      throws io.rxmicro.http.error.ValidationException
        Description copied from interface: ConstraintValidator
        Validates a single actual. The state of actual must not be altered.
        Specified by:
        validate in interface ConstraintValidator<T>
        Parameters:
        actual - actual value to validate
        httpModelType - http model type
        modelName - parameter or header name
        Throws:
        io.rxmicro.http.error.ValidationException - if actual does not pass the constraint