Render discriminated object arrays in props#572
Conversation
andrii-balitskyi
commented
May 6, 2025
- Add a new line after property-collapsible in api-resource partial
- Render array props of discriminated objects
|
Initial version of an idea for how to represent arrays of discriminated objects |
|
@andrii-balitskyi That looks nice! However, I think that folks would prefer a more concise version of what you're proposing. Perhaps the list of possible variants is unnecessary because you have the info. in the tabs (which is a great idea!). |
|
Also, I don't think that you need the sentence about "The items in this list are objects." I think that the next sentence is sufficient. |
|
You could take the first two paragraphs and combine them. Then, you could take the intro. to the tabs and change it to just "Variants:" or something like that. |
|
Hmmm... I do like the tabs, but how do we handle the tab labels getting truncated? I wonder if we need to switch from the tabs to something simpler like an expandable block for each variant, unfortunately. |
|
@DebbieAtSeam It seems that we can't control tab labels being truncated; GitBook does it automatically. I'll try the expandable block with more concise content. |
|
@DebbieAtSeam What do you think about this: |
…s-for-acs_userpending_mutations-not-generating
@andrii-balitskyi Excellent! Thanks! |
…s-for-acs_userpending_mutations-not-generating




