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