adopted-ember-addons / adopted-ember-addons/ember-changeset-validations

Documentation Needed: Argument definitions/usage for a custom validator

未关闭
#159 1 条评论 5 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
215
派生
98
PR 合并指标
30 天内没有已合并 PR

描述

The documentation currently shows that you can create a custom validator and which arguments are provided into the function, however, nowhere is it explained what each of these arguments actually IS. For example, I have a validator that is dependent on two values from the `changeset` and I thought getting the property from the `changes` argument would work but in some cases, I am getting `undefined`. Whether or not this is a bug or just an issue in my code is irrelevant. The problem here is that there is no indication on what these args mean or how they should be used. `key`, `oldValue` and `newValue` are easy enough, but what about `changes` and `content`?

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。