Skip to content

fix: use array widget when using a OA 3.1 foldable array#10942

Open
tthornton3-chwy wants to merge 1 commit into
swagger-api:masterfrom
tthornton3-chwy:bugfix/show-array-widget-when-using-foldable-arrays
Open

fix: use array widget when using a OA 3.1 foldable array#10942
tthornton3-chwy wants to merge 1 commit into
swagger-api:masterfrom
tthornton3-chwy:bugfix/show-array-widget-when-using-foldable-arrays

Conversation

@tthornton3-chwy

@tthornton3-chwy tthornton3-chwy commented Jun 24, 2026

Copy link
Copy Markdown

Description

When using OA 3.1 and a type like ["array", "null"], the gross json editor was shown, instead of the gorgeous array item picker.

Motivation and Context

This is required because this is a bug.
Fixes: #10943

How Has This Been Tested?

A unit test was added first that recreated the issue, then when we did the code-fixes the test began to pass. We also loaded this into our application using swagger that highlighted the issue, and it properly went away.

Screenshots (if appropriate):

Screenshot 2026-06-24 at 7 55 00 PM

Checklist

My PR contains...

  • No code changes (src/ is unmodified: changes to documentation, CI, metadata, etc.)
  • Dependency changes (any modification to dependencies in package.json)
  • Bug fixes (non-breaking change which fixes an issue)
  • Improvements (misc. changes to existing features)
  • Features (non-breaking change which adds functionality)

My changes...

  • are breaking changes to a public API (config options, System API, major UI change, etc).
  • are breaking changes to a private API (Redux, component props, utility functions, etc.).
  • are breaking changes to a developer API (npm script behavior changes, new dev system dependencies, etc).
  • are not breaking changes.

Documentation

  • My changes do not require a change to the project documentation.
  • My changes require a change to the project documentation.
  • If yes to above: I have updated the documentation accordingly.

Automated tests

  • My changes can not or do not need to be tested.
  • My changes can and should be tested by unit and/or integration tests.
  • If yes to above: I have added tests to cover my changes.
  • If yes to above: I have taken care to cover edge cases in my tests.
  • All new and existing tests passed.

@tthornton3-chwy tthornton3-chwy changed the title fix: use array widget when using a foldable array fix: use array widget when using a OA 3.1 foldable array Jun 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OA 3.1 foldable array types use the json editor instead of the array item picker

1 participant