0.1.0 • Published 1 year ago
@fict/validators v0.1.0
type
For nested structures the type
can be set to struct
or object
. If not set, it will be automatically determined based on if the node has children or not. If no children, default type
is set to be string
. If the node has children, default type
is set to be object
. If the node has children, but type
is not object
then a transform
routine must be present to convert the object
to the given type
.