This reflects the de-facto situation in Mapbox GL JS and Native: a visibility property value cannot be a function.
This will increase the strictness of the validator, possibly causing some existing styles to fail validation where they would previously pass. But the potential fallout in this case seems limited, since Studio has never allowed creating such a style, and it wouldn't work as anticipated in our SDKs anyway.
Fixes #442.
This reflects the de-facto situation in Mapbox GL JS and Native: a
visibility
property value cannot be a function.This will increase the strictness of the validator, possibly causing some existing styles to fail validation where they would previously pass. But the potential fallout in this case seems limited, since Studio has never allowed creating such a style, and it wouldn't work as anticipated in our SDKs anyway.
cc @lucaswoj @mapbox/appbox