InstanceOverride
zio.blocks.schema.derive.InstanceOverride
An override that supplies a custom type class instance during derivation, bypassing the auto-derived one.
Resolution priority (highest to lowest):
- InstanceOverrideByOptic — matches an exact path in the schema tree
- InstanceOverrideByTypeAndTermName — matches a term (field or case) name inside a specific parent record/variant
- InstanceOverrideByType — matches every occurrence of a type
Attributes
- Source
- InstanceOverride.scala
- Graph
-
- Supertypes
- Known subtypes
-
In this article