quivr.models.RatioValidator.scala Maven / Gradle / Ivy
The newest version!
package quivr.models
object RatioValidator extends scalapb.validate.Validator[quivr.models.Ratio] {
def validate(input: quivr.models.Ratio): scalapb.validate.Result =
quivr.models.Int128Validator.validate(input.numerator) &&
quivr.models.Int128Validator.validate(input.denominator)
}