Fix nested anyOf/oneOf schema rendering with lazy tabs#1248
Merged
Conversation
…cing - Add lazy rendering to SchemaTabs to ensure only selected tab content is rendered - Generate unique IDs for each anyOf/oneOf tab group to prevent value collisions - Add fallback labels for schemas without title or type - Support implicit object types (schemas with properties but no explicit type: object) - Add proper spacing (1rem) between badges and tabs, and after tab containers Fixes rendering issues where: - All tab contents were visible simultaneously regardless of selection - Nested oneOf schemas weren't displaying correctly - Tab selection wasn't properly isolated - Visual spacing was missing between badges and tabs
|
Size Change: +1.18 kB (+0.05%) Total Size: 2.14 MB
ℹ️ View Unchanged
|
|
Visit the preview URL for this PR (updated for commit 15526be): https://docusaurus-openapi-36b86--pr1248-ee56d94p.web.app (expires Wed, 17 Dec 2025 17:18:07 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: bf293780ee827f578864d92193b8c2866acd459f |
Adds /anyof-nested-oneof-with-properties test operation that demonstrates: - anyOf containing multiple oneOf arrays - oneOf schemas with properties but no explicit type: object - Schema with both oneOf and properties at the same level (layer3) - Complex nesting similar to ethernet-interfaces schema This test case validates the fixes for lazy tab rendering, unique tab IDs, and proper handling of implicit object types.
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.
Fixes rendering issues where:
Description
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate)
Types of changes
Checklist