Skip to content
Bug reportAug 30, 2026· 0:24· 10 views

Scalar schema viewer: oneOf array branch labeled 'array object[]' instead of 'ResourceObject[]'

0:24 total

Comments · 0

Be the first to comment.

Bug report— by SceneRecap AI

lowSchema viewer composition dropdown / type resolution
os: macOSbrowser: Chromium 151.0.7922.34viewport: 1280x720

Repro steps

  1. 1.Open OpenAPI document defining a oneOf schema containing a $ref to a model (ResourceObject) and an array of that model.
  2. 2.Click on 'Models' in the middle navigation list to expand the models list.
  3. 3.Click on 'OneOrMany' to inspect the model's schema view in the right panel.
  4. 4.Click on the 'One of' composition selector dropdown button.
  5. 5.Inspect the dropdown list options and select the array option.

Expected

The array branch of the oneOf composition should be labeled with its referenced model type name ('ResourceObject[]' or 'array ResourceObject[]').

Actual

The array branch dropdown option and selector label display as generic 'array object[]' instead of resolving the item schema name 'ResourceObject[]'.

Evidence

visualDropdown selector menu at t=11.0s displays options 'ResourceObject' and 'array object[]' instead of 'ResourceObject[]'.
visualSelecting the array option displays 'One of array object[]' in the header selector at t=15.0s, though the badge underneath correctly indicates 'ResourceObject[]'.
visualControl case: The direct reference branch is correctly labeled 'ResourceObject' in the dropdown and header selector (t=11.0s, t=21.0s).
Issue markdown (copy-paste ready)
### Summary
When viewing a composite schema (`oneOf`) that contains an array of a referenced schema model (`items: { $ref: '#/components/schemas/ResourceObject' }`), the composition dropdown option and selected header label render as `array object[]` instead of resolving the item type name (`ResourceObject[]`).

### Repro Steps
1. Open an OpenAPI document defining a `oneOf` schema containing a direct model reference (`ResourceObject`) and an array of that model (`OneOrMany`).
2. In the navigation sidebar, click on **Models**.
3. Click on **OneOrMany** to view its schema details.
4. Click on the **One of** composition selector dropdown.
5. Observe the label for the array option in the dropdown and when selected.

### Expected Behavior
The option in the dropdown and the selector header should display `ResourceObject[]` (or `array ResourceObject[]`) to clearly identify the array element type.

### Actual Behavior
The option is rendered as `array object[]` in the dropdown menu and `One of array object[]` in the selector header.

### Evidence
- **Visual (11.0s)**: Dropdown menu presents options `ResourceObject` and `array object[]`.
- **Visual (15.0s)**: Selecting the array option sets header to `One of array object[]`.
- **Control case (21.0s)**: The single object branch displays properly as `ResourceObject`.

*Recorded with SceneRecap.*

Your recordings could explain themselves too.

Free plan · silent recordings welcome · bug reports included.

Try SceneRecap free
Scalar schema viewer: oneOf array branch labeled 'array object[]' instead of 'ResourceObject[]' · SceneRecap