InstanceOverride

zio.blocks.schema.derive.InstanceOverride
sealed trait InstanceOverride

An override that supplies a custom type class instance during derivation, bypassing the auto-derived one.

Resolution priority (highest to lowest):

  1. InstanceOverrideByOptic — matches an exact path in the schema tree
  2. InstanceOverrideByTypeAndTermName — matches a term (field or case) name inside a specific parent record/variant
  3. InstanceOverrideByType — matches every occurrence of a type

Attributes

Source
InstanceOverride.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
In this article