Replies: 2 comments
-
|
Hello @DevSett, A while back, I had a similar idea — but I wanted to push it a bit further. Instead of just supporting a single default, my goal was to allow users to define their own custom level of access and detail right from the start (This also ties into related discussions such as #258 for recursive diagrams). For example: The good news is that the SchemaHierarchy context already provides this depth information (0, 1, 2, …). Since this has been available since at least the 1.10.0 release, it seems feasible to build on it. Something like this could be added to JSVOptions: export type JSVOptions = {
// ... Other options documented at
// https://jy95.github.io/docusaurus-json-schema-plugin/docs/api/JSONSchemaViewer
/**
* Defines how deep the diagram should be expanded by default.
* @default 1
*/
defaultExpandDepth?: number
}Does this approach align with your vision & mine ? |
Beta Was this translation helpful? Give feedback.
-
|
Solved by #654 that is part of 1.15.0 release.
Feel free to open a new discussion if you have other ideas |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
For sufficiently large diagrams, search is necessary. There is no built-in search function, so it would at least be convenient to expand the entire diagram at once and use the built-in search.
Is there a ready-made tool for this, or how can this be implemented?
Beta Was this translation helpful? Give feedback.
All reactions