zio.blocks.schema.SchemaRepr
See theSchemaRepr companion object
A lightweight representation of schema structure for pattern matching in search optics.
SchemaRepr captures the shape of a type without runtime bindings, enabling structural matching against DynamicValue instances.
Attributes
- Companion
-
object
- Source
-
SchemaRepr.scala
- Graph
-
- Supertypes
-
trait Matchable
class Any
- Known subtypes
-
Members list
Renders this schema representation as a parseable string.
Renders this schema representation as a parseable string.
Examples:
Nominal("Person") → "Person"
Primitive("string") → "string"
Record(...) → "record { name: string, age: int }"
Variant(...) → "variant { Left: int, Right: string }"
Sequence(...) → "list(string)"
Map(...) → "map(string, int)"
Optional(...) → "option(Person)"
Wildcard → "_"
Attributes
- Definition Classes
-
Any
- Source
-
SchemaRepr.scala