Validation errors for layer properties should include layer id
Open
Nobody has claimed this yet.
cross-platform :tv:
- Dominant language
- TypeScript
- Stars
- 12.4k
- Forks
- 2.4k
- PR merge metrics
- No merged PRs in 30d
Description
From @jfirebaugh on February 12, 2016 19:35
Current message:
Error: layers[101].layout.icon-image.stops[1][0]: array stops must appear in ascending order and have no duplicates
This would be more helpful:
Error: Layer "major-road-casing", layout.icon-image.stops[1][0]: array stops must appear in ascending order and have no duplicates
Copied from original issue: mapbox/mapbox-gl-style-spec#417
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file or test is named in the issue. Locate the layer-property validation entry point and compare the current and requested error formats; done means validation errors identify the layer by name and retain the existing property path and explanation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100