decaporg / decaporg/decap-cms

Widget validation: `unique` constraint

Open
#1,069 7 comments 3 reactions 0 assignees View on GitHub
area: validation kind: feature pinned
Dominant language
JavaScript
Stars
19.4k
Forks
3.1k
Avg merge
1d 14h
Merged PRs (30d)
9

Description

Per discussion in #1035

**- Do you want to request a *feature* or report a *bug*?**

Feature.

**- What is the current behavior?**

There is no way to enforce unique constraints on collection fields.

**- What is the expected behavior?**

I propose a validation `unique` a la `pattern` to enforce unique constraints.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.