Skip to content

Support allOf, anyOf, and oneOf schemas with properties in array item #1156

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dsuket
Copy link

@dsuket dsuket commented May 29, 2025

Description

Ensure correct display when using properties along with allOf, anyOf, and oneOf in array child elements.

Motivation and Context

There's an issue where an object defined with properties combined with allOf, anyOf, and oneOf in array child elements doesn't display correctly. This addresses that problem.
For details, please refer to Issue #1153.

How Has This Been Tested?

Added and verified new cases for allOf, anyOf, and oneOf in the demo tests.

  • allOf with Properties in Array Item
  • anyOf with Properties in Array Item
  • oneOf with Properties in Array Item

Confirmed that examples are displayed correctly.

Screenshots (if appropriate)

  • allOf with Properties in Array Item
    localhost_3000_tests_all-of-with-properties-in-array-item

  • anyOf with Properties in Array Item
    localhost_3000_tests_all-of-with-properties-in-array-item (1)

  • oneOf with Properties in Array Item
    localhost_3000_tests_all-of-with-properties-in-array-item (2)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Fixed the issue so that items that were not displaying correctly are now displayed properly.

Checklist

  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes if appropriate.
  • All new and existing tests passed.

@dsuket dsuket force-pushed the support-allOf-in-array-item branch from ba3d7b1 to c554e17 Compare May 29, 2025 03:23
@dsuket dsuket closed this May 29, 2025
@dsuket dsuket deleted the support-allOf-in-array-item branch May 29, 2025 03:46
@dsuket dsuket restored the support-allOf-in-array-item branch May 29, 2025 04:06
@dsuket dsuket reopened this May 29, 2025
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.

1 participant