xyz.stratalab.node.models.CurrentKnownHostsResValidator.scala Maven / Gradle / Ivy
The newest version!
package xyz.stratalab.node.models
object CurrentKnownHostsResValidator extends scalapb.validate.Validator[xyz.stratalab.node.models.CurrentKnownHostsRes] {
def validate(input: xyz.stratalab.node.models.CurrentKnownHostsRes): scalapb.validate.Result =
scalapb.validate.Result.repeated(input.hotHosts.iterator) { _value =>
xyz.stratalab.node.models.KnownHostValidator.validate(_value)
} &&
scalapb.validate.Result.repeated(input.warmHosts.iterator) { _value =>
xyz.stratalab.node.models.KnownHostValidator.validate(_value)
} &&
scalapb.validate.Result.repeated(input.coldHosts.iterator) { _value =>
xyz.stratalab.node.models.KnownHostValidator.validate(_value)
}
}