io.datalbry.precise.serialization.jackson.PreciseMapper.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of precise-serialization-jackson Show documentation
Show all versions of precise-serialization-jackson Show documentation
Precise is just another data serialization framework
package io.datalbry.precise.serialization.jackson
import com.fasterxml.jackson.databind.ObjectMapper
import io.datalbry.precise.api.schema.Schema
/**
* Precise specific [ObjectMapper] with preconfigured options
*
* Precise is statically typed and requires a [Schema] for serialization*
*
* @param schema for precise to use
*/
class PreciseMapper(schema: Schema): ObjectMapper() {
init {
val preciseModule = PreciseModule(schema)
this.registerModule(preciseModule)
}
}