ajv-validator / ajv-validator/ajv

Validate object containing object for uniqueness

Offen
#2,267 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement
Vorherrschende Sprache
TypeScript
Sterne
14.8k
Forks
1k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Hi,

I have the example like below,
```
"obj2":
{
{
"prop1": "baz", "prop2": 999
},
{
"prop1": "qux", "prop2": 555
}
}
```

i.e object containing objects, now in this i need '**_prop1_**' field to have unique values.

**_Note:_**: I know this is possible when it is array of object, but i dont think there is any solution for the same case when object containing objects.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.