#10370·scalar

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:

Image

However, the form editor shows an empty input ("select a value"):

Image

And when I select values in the form editor and switch back to the raw editor, it is serialized as a comma-separated string:

Image

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.

ImageImage

OpenAPI Document

https://sandbox.scalar.com/e/DAe7Z