Duplicate conditions in case expression should be reported as invalid #6252
Labels
api 📝
cross-platform 📺
Requires coordination with Mapbox GL Native (style specification, rendering tests, etc.)
needs discussion 💬
mapbox-gl-js version: 0.44.1
Steps to Trigger Behavior
A case expression like follows is valid:
But an expression like following throws an error here:
Expected Behavior
Both of the above expressions are invalid according to spec expression definitions.
Actual Behavior
Match expression with duplicate condition is invalid, but case expression with duplicate condition is valid.
Adding this extra validation would enable us to lean more on mapbox-gl-js's internal validation rather than rolling our own validation on top.
The text was updated successfully, but these errors were encountered: