Is there a way or has your team considered giving the ability to enrich enum values with data that would naturally belong in the UI schema? Currently you can do a small bit of this by attaching a label to enum values using the oneOf and const/title strategy, but this feels kind of strange when trying to follow the paradigm of schema and UI schema. For instance what if I have some enum values but with each one I not only want a label but an image, description, and color. There is already some magic going on within the system that is mapping oneOf or enum entries to the options prop of renderers, so I am suggesting a way to add more data to each object in the options array. There are a few ways this could be done in the UI schema, probably by having a map that is keyed by enum values. I know this can be done manually with the options property of the UI schema paired with a function that can look up each enum value’s uischema, but it seems like it could be a good fit to add to one of these with context hooks. Thoughts?
[original thread by Chad Johnson]