NormalizeFields

zio.http.gen.openapi.Config.NormalizeFields
See theNormalizeFields companion object
final case class NormalizeFields(enableAutomatic: Boolean, manualOverrides: Map[String, String])

Value parameters

enableAutomatic

If enabled, the generator will attempt to normalize field names to camelCase, unless original field is defined in the specialReplacements map.

manualOverrides

When normalization is enabled, a heuristic parser will attempt to normalize field names. But this is not always possible, or may not yield the desired result. Consider field names that are defined in the JSON as "1st", "2nd", or "3rd": You may want to override auto normalization in this case and provide a map like:

                      Map(
                        "1st" -> "first",
                        "2nd" -> "second",
                        "3rd" -> "third"
                      )

Attributes

Companion
object
Source
Config.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product