Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class EnumerationSchema[E]class LazySchema[A]class OptionSchema[A]class PrimitiveSchema[P]class StructSchema[S]class UnionSchema[U]Show all
Members list
Value members
Concrete methods
Turns this schema into an error schema.
Turns this schema into an error schema.
Attributes
Finds the first field that matches the criteria used, and applies a bijection between the schema it holds and partial data, which ensures for the field's schema to be used as "top level" when decoding "payloads".
Finds the first field that matches the criteria used, and applies a bijection between the schema it holds and partial data, which ensures for the field's schema to be used as "top level" when decoding "payloads".
NB : a "payload" is typically a whole set of data, without a typical field-based splitting into subparts. This can be, for instance, an http body.
Attributes
Finds whether a schema (or the underlying schema in the case of bijections/surjections, etc) is a primitive of a certain type.
Finds whether a schema (or the underlying schema in the case of bijections/surjections, etc) is a primitive of a certain type.
Attributes
Checks whether a schema is Unit or an empty structure
Checks whether a schema is Unit or an empty structure
Attributes
When applied on a structure schema, creates a schema that, when compiled into a codec, will only encode/decode a subset of the data, based on the hints of each field.
When applied on a structure schema, creates a schema that, when compiled into a codec, will only encode/decode a subset of the data, based on the hints of each field.
This can be used to only encode some fields of the data into the http body
Returns a SchemaPartition that indicates whether :
- no field match the condition
- some fields match the condition
- all fields match the condition