[validators.default]
validators.default is a slot in the validators namespace, in Hyperlambda, the language of Magic Cloud. Adds default child nodes to the nodes selected by the input expression.
- Value (
lambda-object), required: Expression selecting the node or nodes to apply defaults to
Arguments
Required arguments come first, then the optional ones in the order they are declared.
| Argument | Type | Required | Description |
|---|---|---|---|
| any node name | object | yes | Default child node cloned into each selected node when missing. Can be repeated. |
Guide: How to use [validators.default]
JSON declaration
This is the complete declaration of validators.default, as the running system describes it. It is also published as slot.json.
JSON declaration
{
"name": "validators.default",
"description": "Adds default child nodes to the nodes selected by the input expression",
"signature": {
"input": {
"kind": "lambda-object",
"description": "Expression selecting the node or nodes to apply defaults to",
"required": true,
"mode": "Expression"
},
"children": {
"*": {
"type": "object",
"description": "Default child node cloned into each selected node when missing",
"required": true,
"mode": "ValueOrExpression",
"cardinality": "OneOrMore",
"role": "DynamicMap",
"projection": "StructuredTree"
}
}
}
}
← validators.date |
all validators.* slots |
validators.email → |