unvt / charites

It is an application to style vector tiles easily
https://unvt.github.io/charites/
MIT License
54 stars 13 forks source link

Show detailed validation errors #172

Closed keichan34 closed 1 year ago

keichan34 commented 1 year ago

Thank you for submitting a pull request!

Description

This PR is on top of my previous one #171

Include layer ID with error output

Previously, the validation error would only show the path of the error. For example:

Error: layers[47].filter[3][1][2]: Expected object but found string instead.

This patch will look up the layer ID to make it easier to find the offending layer

Error: Layer "highway-minor": layers[47].filter[3][1][2]: Expected object but found string instead.

Type of Pull Request

Verify the followings

Refer to CONTRIBUTING.MD for more details.