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