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 还没有评估数据。