ajv-validator / ajv-validator/ajv-cli

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

未关闭
#86 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
docs
主要语言
TypeScript
星标
316
派生
77
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。