feat(oas31/style): array items label to schema name (#10794)#10795
Open
adrianodpdiaz wants to merge 7 commits intoswagger-api:masterfrom
Open
feat(oas31/style): array items label to schema name (#10794)#10795adrianodpdiaz wants to merge 7 commits intoswagger-api:masterfrom
adrianodpdiaz wants to merge 7 commits intoswagger-api:masterfrom
Conversation
…label-to-schema-name
lukaszzazulak
requested changes
Apr 16, 2026
lukaszzazulak
previously approved these changes
Apr 17, 2026
Contributor
|
@adrianodpdiaz apparently, it is not that simple, see here #9540 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
In the OAS 3.1 model viewer, when a schema has an array property whose
itemspoints to a$ref, the label for the items entry was hardcoded toItemsregardless of the referenced schema name. This change makes it display the actual referenced schema name (e.g.User) instead, bringing it in line with the OAS 3.0 UI.Motivation and Context
#10794
How Has This Been Tested?
makeGetTitlecovering all relevant cases (test/unit/core/plugins/oas31/json-schema-2020-12-extensions/fn.js)test/e2e-cypress/e2e/features/oas31-array-items-label.cy.js)npm run dev) with an OAS 3.1 spec containing array properties with$refitems — the label now shows the schema name instead ofItemsitemsschemas still showItemsas fallbackScreenshots:
BEFORE:

AFTER:

Checklist
My PR contains...
src/is unmodified: changes to documentation, CI, metadata, etc.)package.json)My changes...
Documentation
Automated tests