ajv-validator / ajv-validator/ajv-cli
how to throw error if my property value is "NA" or "undefined" in ajv?
Aperta
- 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.