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
}
[
"tzune",
"rdjen",
"klhkx",
"yemfm",
"qtlza"
]

Specification

JSON schema

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