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

modules.StandardModule.kt Maven / Gradle / Ivy

package com.github.fluidsonic.baku

import com.github.fluidsonic.fluid.json.*


internal object StandardModule : BakuModule() {

	override fun BakuModuleConfiguration.configure() {
		bson(
			CityNameBSONCodec,
			CompanyNameBSONCodec,
			CountryBSONCodec,
			CurrencyBSONCodec,
			EmailAddressBSONCodec,
			FirstNameBSONCodec,
			FullNameBSONCodec,
			LastNameBSONCodec,
			PasswordHashBSONCodec,
			PhoneNumberBSONCodec,
			PostalCodeBSONCodec,
			UrlBSONCodec
		)

		json(
			CountryJSONCodec,
			CurrencyJSONCodec,
			UrlJSONCodec,
			JSONCodecProvider.generated(BakuJSONCodecProvider::class),
			EnumJSONCodecProvider(transformation = EnumJSONTransformation.ToString(EnumJSONTransformation.Case.`lowercase words`))
		)
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy