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

Documentation Needed: Argument definitions/usage for a custom validator

Abierto
#159 1 comentario 5 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
215
Forks
98
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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`?

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.