Fallback
Schema for zio.schema.Fallback type. If fullDecode is set to true, it will decode Fallback.Both from Fallback.Both. If set to false, it will decode Fallback.Left when possible and Fallback.Right as second option from a Fallback.Both.
Attributes
- Graph
-
- Supertypes
- Self type
-
Members list
Value members
Concrete methods
Returns a new schema that with annotation
The default value for a Schema of type A.
Attributes
- Definition Classes
Inherited methods
A symbolic operator for orElseEither.
Attributes
- Inherited from:
- Schema
Convert to Schema[B] iff B and A are homomorphic.
Convert to Schema[B] iff B and A are homomorphic.
This can be used to e.g convert between a case class and it's "generic" representation as a ListMap[String,_]
Attributes
- Inherited from:
- Schema
Performs a diff between thisValue and thatValue. See zio.schema.Differ for details on the default diff algorithms.
Performs a diff between thisValue and thatValue. See zio.schema.Differ for details on the default diff algorithms.
Attributes
- Inherited from:
- Schema
Attributes
- Inherited from:
- Schema
Generate a homomorphism from A to B iff A and B are homomorphic
Returns a new schema that modifies the type produced by this schema to be optional.
Returns a new schema that modifies the type produced by this schema to be optional.
Attributes
- Inherited from:
- Schema
Returns a new schema that combines this schema and the specified schema together, modeling their either composition.
Returns a new schema that combines this schema and the specified schema together, modeling their either composition.
Attributes
- Inherited from:
- Schema
Patch value with a Patch.
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Schema
Attributes
- Inherited from:
- Schema
Transforms this Schema[A] into a Schema[B], by supplying two functions that can transform between A and B, without possibility of failure.
Transforms this Schema[A] into a Schema[B], by supplying two functions that can transform between A and B, without possibility of failure.
Attributes
- Inherited from:
- Schema
Transforms this Schema[A] into a Schema[B], by supplying two functions that can transform between A and B (possibly failing in some cases).
Transforms this Schema[A] into a Schema[B], by supplying two functions that can transform between A and B (possibly failing in some cases).
Attributes
- Inherited from:
- Schema
Attributes
- Inherited from:
- Schema
Returns a new schema that combines this schema and the specified schema together, modeling their tuple composition.
Returns a new schema that combines this schema and the specified schema together, modeling their tuple composition.
Attributes
- Inherited from:
- Schema