ajv-validator / ajv-validator/ajv-cli

how to throw error if my property value is "NA" or "undefined" in ajv?

Aperta
#104 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
316
Fork
77
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hi guys,
i just want to know, how to throw error if my property value is "NA" or "undefined".

sample data:
`"data":{
"fname":"NA",
"lname":"undefined",
"age":"28"
}`

now i want to show error for fname and lname property, what changes i need to make in schema?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.