Zot.Type protocol (zot v0.12.0)
View SourceProtocol for defining Zot types.
Summary
Types
Raw input value.
Parsed and validated value.
The portion of an invalid input that was successfully parsed and validated.
All the types that implement this protocol.
Types
Functions
Converts the type into a JSON Schema.
@spec parse(t(), input(), [option]) :: {:ok, output()} | {:error, [Zot.Issue.t(), ...]} | {:error, [Zot.Issue.t(), ...], partial()} when option: {:coerce, boolean() | :unsafe} | {atom(), term()}
Parses a value according to the given type.