Scalar functions
digitString
Commentary
added in 0.1.13
Generates character strings composed of only digits. Specify the length with n
.
Examples
Generating digit strings
{
"_gen": "digitString",
"n": 5
}
[
"36429",
"33588",
"17522",
"64719",
"71369"
]
Specification
JSON schema
{
"type": "object",
"properties": {
"n": {
"oneOf": [
{
"type": "integer",
"minimum": 0
},
{
"type": "object",
"properties": {
"_gen": {
"type": "string"
}
},
"required": [
"_gen"
]
}
]
}
},
"required": [
"n"
]
}