Replies: 1 comment 5 replies
-
Hello, Indeed, The constant case could be anything.
I don't think that for objects
Less is usualy better - seeing
For example, for the two cases I explained that having them in summary could be less understandable
For the sake of demonstration, let's start from the tuples example ( https://jy95.github.io/docusaurus-json-schema-plugin/docs/demo-viewer/array/tuples ) where we add some const and put it under some nested levels For the being time, I do like the idea I developed in n°2 as regardless of the value itself, it would trigger attention. |
Beta Was this translation helpful? Give feedback.
-
Generated friendly names (used by SchemaItem) are really handy and quite flexible, but I notice that they miss the opportunity to display a
const
value inline, requiring readers to drill down into the full SchemaItem details content to see the constant value.This seems like the sort of thing that does not warrant an extra click, so I recently swizzled this behavior into my own schema docs. I figured I would suggest this change here in case you agree that it's a useful default for all users of your plugin.
See screenshot (ironically I now ask you to click)
Beta Was this translation helpful? Give feedback.
All reactions