Titles in refs are not incorporated when constructing allOf/oneOf/anyOf dropdowns
See original GitHub issuePrerequisites
- I have read the documentation;
- In the case of a bug report, I understand that providing a SSCCE example is tremendously useful to the maintainers.
- Ideally, I’m providing a sample JSFiddle or a shared playground link demonstrating the issue.
Description
If a title
property is stored within a $ref
on an allOf
, oneOf
, or anyOf
schema, it is not used when constructing a dropdown select for that schema.
Steps to Reproduce
We have a oneOf
with both entries in the array being loaded via a $ref
. One of them has a title
alongside the $ref
in the array, while the other has a title
in the $ref
schema. The one with the title alongside has its title represented in the dropdown, while the other has an option label of “Option 1”.
Expected behavior
Titles within a $ref
should be incorporated into the dropdown option labels.
Actual behavior
Title is not accessed within the $ref
when constructing the dropdown.
Version
Current HEAD
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Video: Create and manage drop-down lists - Microsoft Support
Training: Watch and learn how to insert a drop-down list in Excel to make data entry easier or to limit cell entries to...
Read more >Video: Drop-down list settings - Microsoft Support
Training: You can use a comma-delimited list, a cell range, or a named range to define the options in a drop-down list. This...
Read more >Create a drop-down list - Microsoft Support
To stop people from entering data that isn't in the drop-down list, click Stop . Note: If you don't add a title or...
Read more >How to make a dependent (cascading) drop-down list in Excel
Go to the Data tab, click Data Validation and set up a drop-down list based on a named range in the usual way...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@mr-bjerre I think you have to fix this line of code (https://github.com/rjsf-team/react-jsonschema-form/blob/master/packages/core/src/components/fields/MultiSchemaField.js#L135) so that it properly resolves
$ref
’s in the subschema before getting itstitle
property.This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please leave a comment if this is still an issue for you. Thank you.