0.0.5 • Published 7 months ago
@fict/validators v0.0.5
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
.