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

modules.StandardModule.kt Maven / Gradle / Ivy

There is a newer version: 0.9.27
Show newest version
package com.github.fluidsonic.baku

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


internal object StandardModule : BakuModule() {

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy