Q&A (please complete the following information)
- OS: ALL
- Browser: ALL
- Version: ALL
- Method of installation: ALL
- Swagger-UI version: Latest/5.32.8
- Swagger/OpenAPI version: Swagger 2 OpenAPI 3.1
Content & configuration
Example Swagger/OpenAPI definition:
{
"name": "test",
"in": "query",
"description": "Find Something",
"required": false,
"allowEmptyValue": true,
"schema": {
"type": ["array", "null"],
"items": {
"type": "string",
"description": "Repo.",
"enum": [
"FOO",
"BAR"
]
}
}
},
Describe the bug you're encountering
You would get the raw json editor when using the spec above. This should instead be the array item picker.
To reproduce...
Steps to reproduce the behavior:
- Have an api-doc similar/including to what I shared above.
- See that the json editor is shown instead of the array item picker.
Expected behavior
The array item picker should be shown.
Screenshots
What we want:
Additional context or thoughts
I fixed it here: #10942
Q&A (please complete the following information)
Content & configuration
Example Swagger/OpenAPI definition:
{ "name": "test", "in": "query", "description": "Find Something", "required": false, "allowEmptyValue": true, "schema": { "type": ["array", "null"], "items": { "type": "string", "description": "Repo.", "enum": [ "FOO", "BAR" ] } } },Describe the bug you're encountering
You would get the raw json editor when using the spec above. This should instead be the array item picker.
To reproduce...
Steps to reproduce the behavior:
Expected behavior
The array item picker should be shown.
Screenshots
What we want:
Additional context or thoughts
I fixed it here: #10942