All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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)
    }
  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy