apollo
Functions
pub fn typed(type_: a, schema: List(#(String, Value))) -> Schema(
b,
)
Returns a schema to be used by validate
. Takes in a type constructor and a list of key, value pairs.
Example
type Id {
Id(id: String)
}
let res: t.Schema(Id) = typed(
Id,
#(
#("id", t.string())
)
)