Skip to main content

Function modifiers

null

Commentary

added in 0.0.5

How frequently this function should return null.


Examples

Generating null values

{
"_gen": "string",
"expr": "#{Name.fullName}",
"null": {
"rate": 0.5
}
}

Specification

JSON schema

{
"type": "object",
"properties": {
"null": {
"type": "object",
"properties": {
"rate": {
"oneOf": [
{
"type": "number",
"minimum": 0,
"maximum": 1
},
{
"type": "object",
"properties": {
"_gen": {
"type": "string"
}
},
"required": [
"_gen"
]
}
]
}
},
"required": [
"rate"
]
}
}
}