api

http4k / org.http4k.format / AutoMappingConfiguration / prohibitStrings

prohibitStrings

open fun prohibitStrings(): AutoMappingConfiguration<BUILDER>

Prevent the unmarshalling of raw (unbounded) strings. Useful when we are taking data from the Internet and want to ensure that all inbound fields are represented by bounded or validated types.