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 摘要。