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 Serializable
trait Product
trait Equals
trait Reflect
trait Modifier
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala