Test Request "Form" view: enum array is written as a comma-separated string rather than a JSON array
Author: jackswiggettCreated Sep 25, 2026Updated Sep 26, 2026
Labelsbug
What happens?
I've configured an array property with string enum values:
tags:
type: array
items:
type: string
enum: [red, green, blue]In the Test Request editor, we see the expected JSON in the raw editor:
However, the form editor shows an empty input ("select a value"):
And when I select values in the form editor and switch back to the raw editor, it is serialized as a comma-separated string:
What did you expect to happen?
I expected that:
- The default values from the example would be initially shown in the form editor select input
- When selecting different values, the selection would be serialized as a JSON array in the raw editor
Note: there is an additional issue here where long JSON arrays overflow the bounds of the select input. Let me know if you'd prefer I log this separately.
OpenAPI Document
Source: scalar/scalar