Vizzuality / layer-manager

A library to get a layer depending on provider and layer spec
https://layer-manager-docs.vercel.app
MIT License
18 stars 12 forks source link

request: tooling to validate layer specs #128

Open andresgnlez opened 2 years ago

andresgnlez commented 2 years ago

I think it would be quite useful that LM offers a set of tools to validate, in an isolated way, an incoming layer spec and export warning/errors that might happen during the validation process.

This tool could be used both in LM (and avoid rendering wrong layers leading to tricky errors coming from Mapbox and deeper dependencies) and for specific workflows in applications (like layer creation/edition in a back-office)

Bluesmile82 commented 2 years ago

I started a layer type checker for Mapbox layers. Maybe it can help as a start https://github.com/Vizzuality/jupyter-layer-test

andresgnlez commented 2 years ago

@Bluesmile82 yup, I think it's a good idea! Perhaps we should start defining the scope, features and boundaries of this tool to ensure everyone is on the same page.