Skip to main content

Scalar functions

characterString

Commentary

added in 0.1.13

Generates character strings composed of only alpha characters. Specify the length with n.


Examples

Generating character strings

{
"_gen": "characterString",
"case": "lower",
"n": 5
}
[
"zoqgq",
"uuvrt",
"povsq",
"enplw",
"ojybw"
]

Specification

JSON schema

{
"type": "object",
"properties": {
"n": {
"type": "integer",
"minimum": 0
},
"case": {
"type": "string",
"enum": [
"lower",
"upper",
"mixed"
]
}
}
}