ajv-validator / ajv-validator/ajv

Add schema in the middle of validation

Offen
#2,553 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

**What version of Ajv you are you using?**

Latest

**What problem do you want to solve?**

I want to addSchema on the fly when a ProtoDeclare property key and associated property object value is found, which is like an extension to allow for property keys with associated validateable object to be validated later on in the document.

Note that ProtoDeclare object should be processed to determine correct schema to build.

**What do you think is the correct solution to problem?**

Add a hook to allow additional schema to be added when a property key is found, which affects keyed objects later in the document.

**Will you be able to implement it?**

Not soon

The alternative is to convert to DOM (something serverside).

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

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