fieldNaming
zio.blocks.schema.Modifier.fieldNaming
case class fieldNaming(strategy: String) extends Reflect
Makes the JSON codec of a record map its field names with the naming strategy strategy: identity, snake_case, camelCase, kebab-case or PascalCase. Another value makes the derivation of the codec throw an IllegalArgumentException. A field with a rename keeps that name.
Attributes
- Source
- Modifier.scala
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Reflecttrait Modifiertrait StaticAnnotationclass Annotationclass Objecttrait Matchableclass Any
Members list
In this article