Description
The current enumeration legend styling assumes a contiguous enumeration from min to max of the enumeration values. There are datasets with non-contiguous enumerations which end up with "dead space" values in their legends from this choice.
Describe the solution you'd like
Change the enumeration legend in core/style to generate a list of enumeration values rather than creating a range from min to max.
Additional context
Here's a non-contiguous USCS soils legend, showing a bunch of "black" values in the non-contiguous region:

Description
The current enumeration legend styling assumes a contiguous enumeration from min to max of the enumeration values. There are datasets with non-contiguous enumerations which end up with "dead space" values in their legends from this choice.
Describe the solution you'd like
Change the enumeration legend in core/style to generate a list of enumeration values rather than creating a range from min to max.
Additional context
Here's a non-contiguous USCS soils legend, showing a bunch of "black" values in the non-contiguous region: