org.plasmalabs.indexer.services.IndexFieldSpecValidator.scala Maven / Gradle / Ivy
The newest version!
package org.plasmalabs.indexer.services
object IndexFieldSpecValidator extends scalapb.validate.Validator[org.plasmalabs.indexer.services.IndexFieldSpec] {
def validate(input: org.plasmalabs.indexer.services.IndexFieldSpec): scalapb.validate.Result =
scalapb.validate.Result.optional(input.spec.jsonSpecs) { _value =>
org.plasmalabs.indexer.services.JsonIndexSpecsValidator.validate(_value)
} &&
scalapb.validate.Result.optional(input.spec.csvSpecs) { _value =>
org.plasmalabs.indexer.services.CsvIndexSpecsValidator.validate(_value)
}
}