Skip to main content

Function modifiers

elide

Commentary

added in 0.1.21

How frequently this generator call become absent, and its parent key should not be written.


Examples

Eliding the key

{
"_gen": "string",
"expr": "#{Name.fullName}",
"elide": {
"rate": 0.8
}
}

Specification

JSON schema

{
"type": "object",
"properties": {
"null": {
"rate": {
"type": {
"type": "number",
"minimum": 0,
"maximum": 1
}
}
}
}
}