Replies: 1 comment
-
I agree with this. Is there currently any way to configure whether nested schemas are expanded/collapsed by default? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
From a usability perspective, "unrolling" "named" schemas inline in the UI feels unnecessarily confusing. It would be much better to try to display the name of the related schema instead (maybe with an option to expand).
More specifically, here are a couple of good examples:
Pet
schema (or a collection ofPet
s), it would be much nicer to simply displayarray of: Pet
rather thanarray of: ....a possibly long list structure that matches what a Pet is...
Pet
schema, and one of the properties refers to anOwner
schema by $ref, it would also be nice to do the same.I am unsure if the JsonSchema viewer has any ability to do so, or how the elements UI could be made so that it displays it that way. This could start by simply using the key of the hash for the component (whatever that unique string name is), and later there might be better customization options like an
x-*
property on those, for a better display name if necessary.I'd appreciate any thoughts or pointers to get that working, as this would make presenting the API docs MUCH easier to read.
Beta Was this translation helpful? Give feedback.
All reactions