desktop
desktop copied to clipboard
Cannot validate enum in array of strings
Hi,
In Stoplight Desktop v4.4.0, it is impossible to add enum validation to array of string. (For each element of array)
Endpoint Query Parameters
Example code:
{
"in": "query",
"name": "embed",
"type": "array",
"items": {
"type": "string",
"enum": ["a", "b"]
}
}

Models
Example code:
"embed": {
"type": "array",
"items": {
"type": "string",
"enum": ["a", "b"]
}
}
Enum in below screenshot is related to parent (main) type, not elements of array.

Kind Regards,