mapbox / mapbox-gl-style-spec

76 stars 38 forks source link

Validate that metadata only contains valid JSON #536

Closed lucaswoj closed 7 years ago

lucaswoj commented 7 years ago

When a style is validated in GL JS, functions embedded in the metadata are tolerated during validation but cause an error when the style is transferred to the worker. We should validate that metadata only contains valid JSON, no functions or complex objects.

ref https://github.com/mapbox/mapbox-gl-js/issues/3360#event-822052810

lucaswoj commented 7 years ago

This issue was moved to mapbox/mapbox-gl-js#4132