ajv-validator / ajv-validator/ajv-errors
Use params in custom errors
オープン
feature
- 主要言語
- TypeScript
- スター
- 289
- フォーク
- 21
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Hey :) First of all, thank you for this amazing library.
I was wondering if it is possible to use params in custom errors templates ?
For example, I'd like to be able to do something like this:
errorMessage: {
additionalProperties: 'Invalid additional property "${params.additionalProperty}"'
}
To get an error message with the property that failed.
Is there anyway to do it or do we have to post-process the error ?
Thanks !
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。