ajv-validator / ajv-validator/ajv-keywords

Allow adding custom transform filters

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

描述

`dynamicDefaults` allow users to add their own defaults functions by exporting `DEFAULTS` in the keyword, as so: https://github.com/epoberezkin/ajv-keywords/blob/master/keywords/dynamicDefaults.js#L49

However, `transform` does not export the transform variable - https://github.com/epoberezkin/ajv-keywords/blob/master/keywords/transform.js#L4 - and so there's literally no way for users to add custom transformations.

I think you should export the `transform` variable like you do in `dynamicDefaults` and allow people to add their own transformations, rather than bolting in other transformations like in #95 or #66.

Thanks!

貢獻指南

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

評估

這個 Issue 還沒有評估資料。

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

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