ajv-validator / ajv-validator/ajv-cli

What is the best way to pass an array of values into unknownFormats

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

Descrizione

This is more of a query than an issue.

The following command called from Powershell works fine and returns errors for unknown formats:
`ajv validate -d data.json -s schema.json --unknown-formats ignore --verbose --errors text --all-errors`

To ignore specific formats the following command also works fine (after trying many different variations to pass multiple values for the `unknown-formats` parameter):
`ajv validate -d data.json -s schema.json --unknown-formats="int32" --unknown-formats="double" --verbose --errors text --all-errors`

Is there a better way to pass in the additional formats in the `unknown-formats` parameter without repeating `--unknown-formats`?

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.