forked from scalar/scalar
-
Notifications
You must be signed in to change notification settings - Fork 156
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description
When an enum field has a "Show all values" button to display all possible values, clicking it expands the list but the descriptions for each enum value are not displayed.
Current Behavior
- Enum with many values shows "Show all values" button
- Clicking button expands to show all enum values
- Descriptions for enum values are not rendered
- Only the enum values themselves are visible
Expected Behavior
- Clicking "Show all values" expands the enum list
- Each enum value displays with its associated description
- Descriptions should be formatted consistently with collapsed view
- Full information is available for all enum values
Steps to Reproduce
- Navigate to API reference with an enum property that has descriptions
- Find an enum with enough values to trigger "Show all values" button
- Click "Show all values" to expand
- Observe that enum values appear but descriptions are missing
- Compare with collapsed state where descriptions may be visible
Proposed Solution
Update the UI expansion logic to include enum descriptions when rendering the full list. This involves modifying the Vue component that handles enum display to iterate through and show both values and descriptions.
Technical Context
- Component:
api-reference - Frontend Vue component changes
- Involves conditional rendering logic
- May require schema traversal to fetch descriptions
Download https://cap.so/ to record your screen (use Studio mode). Export as an mp4, and drag and drop into an issue comment below.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working