Repository navigation
fix: render nested arrays as Type[][] in Schema tab (#1114) - #1465
Merged
Merged
Conversation
getSchemaName only descended one level into schema.items, so an array-of-arrays-of-objects rendered as `array[]` instead of `Type[][]`. Recurse on schema.items so each level of nesting appends another `[]`. Adds unit tests in both packages and a demo fixture (demo/examples/tests/nestedArrays.yaml) covering arrays of arrays of objects and arrays nested two and three levels deep. Co-Authored-By: Claude Opus 4.7 <[email protected]>
|
Size Change: +6.07 kB (+0.26%) Total Size: 2.32 MB 📦 View Changed
ℹ️ View Unchanged
|
|
Visit the preview URL for this PR (updated for commit b087afb): (expires Tue, 19 May 2026 15:54:23 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: bf293780ee827f578864d92193b8c2866acd459f |
This branch was previously deployed
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.
Summary
arrayofarrayofStep) rendered asarray[]in the Schema tab instead ofStep[][]getSchemaNamenow recurses onschema.items, so each level of nesting appends another[](applied to both the plugin and theme copies)demo/examples/tests/nestedArrays.yaml) covering arrays of objects nested two and three levels deepTest plan
yarn jest packages/*/src/markdown/schema.test.ts— 10/10 passyarn workspace demo start, open the Nested Arrays group under Tests, and verify the Schema tab showsStep[][]forroutes,integer[][]formatrix, andstring[][][]forcube🤖 Generated with Claude Code