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

a8.shared.json.JsonReadOptions.scala Maven / Gradle / Ivy

There is a newer version: 1.0.0-20230212_1012_master
Show newest version
package a8.shared.json

import a8.shared.json.JsonReadOptions.UnusedFieldAction


object JsonReadOptions {

  sealed trait UnusedFieldAction
  object UnusedFieldAction {
    case object Ignore extends UnusedFieldAction
    case object LogWarning extends UnusedFieldAction
    case object LogDebug extends UnusedFieldAction
    case object Fail extends UnusedFieldAction
  }

  implicit val default: JsonReadOptions =
    JsonReadOptions(UnusedFieldAction.LogWarning)

}


case class JsonReadOptions(unusedFieldAction: UnusedFieldAction)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy