ajv-validator / ajv-validator/ajv-cli

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

Ouverte
#86 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
docs
Langage dominant
TypeScript
Étoiles
316
Forks
77
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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`?

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.