org.plasmalabs.indexer.services.IndexSpecValidator.scala Maven / Gradle / Ivy
The newest version!
package org.plasmalabs.indexer.services
object IndexSpecValidator extends scalapb.validate.Validator[org.plasmalabs.indexer.services.IndexSpec] {
def validate(input: org.plasmalabs.indexer.services.IndexSpec): scalapb.validate.Result =
org.plasmalabs.indexer.services.IndexFieldSpecValidator.validate(input.indexFieldSpec) &&
scalapb.validate.Result.optional(input.indexFilter) { _value =>
org.plasmalabs.indexer.services.IndexFilterValidator.validate(_value)
}
}