sample json schema with enumeration code example
Example: JSON schema enumerated type
{
"type": "array",
"items": {
"type": "string",
"enum": ["one", "two", "three"]
}
}
{
"type": "array",
"items": {
"type": "string",
"enum": ["one", "two", "three"]
}
}