fieldDefaultValue
zio.schema.annotation.fieldDefaultValue
final case class fieldDefaultValue[A](value: A) extends StaticAnnotation
Annotation specifying the default value that should be utilized when the field is not present during deserialization. This is similar to @optionalField
, except that the default value is user-defined rather than computed automatically using the field schema.
Value parameters
- value
-
The default value to use for the field.
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait StaticAnnotationclass Annotationclass Objecttrait Matchableclass Any
Members list
In this article