ajv-validator / ajv-validator/ajv-errors

Keyword messages for 'required' and 'additionalProperties' not replaced when ajv's errorDataPath is set to 'property'

未關閉
#12 8 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement
主要語言
TypeScript
星號
289
分支
21
PR 合併指標
30 天內沒有已合併 PR

描述

According to the docs, 'for keywords "required" and "dependencies" it is possible to specify different messages for different properties'. However, when using ajv-errors with `errorDataPath` set to `property`, keyword messages are ignored.

The situation is exactly the same as in the test `should replace required and dependencies errors with messages`, with the exception of the `errorDataPath` being set for ajv in this case.

Is this an intended consequence of setting `errorDataPath` to `property`?

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。