Should validator accept same values for an array-enum property?
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 12.4k
- Forks
- 2.4k
- PR merge metrics
- No merged PRs in 30d
Description
**mapbox-gl-js version**: 0.54.0
### Question
👋 I'm working on supporting `text-variable-anchor` in Studio, and I noticed that this passed the validator.

Should the style validator accept same values in an array-enum property? Asking because this feels like a bug, but I also don't know how much leeway is built into the validator for what I would consider low-priority things like this.
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
Start with the style validator's handling of array-enum properties, the only component identified in the issue. Confirm whether duplicate values should be accepted or rejected, then document the decision and verify that validation behavior matches it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100