From bba0764d1ae7dd2fc5f9f93ab387f3d524e38505 Mon Sep 17 00:00:00 2001 From: Alex Coomans Date: Wed, 6 Jan 2021 23:20:21 -0600 Subject: [PATCH] Fix docs on arguments to message function --- addon/validations/validator.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addon/validations/validator.js b/addon/validations/validator.js index 4442690a..949628a0 100644 --- a/addon/validations/validator.js +++ b/addon/validations/validator.js @@ -190,9 +190,8 @@ import { deprecate } from '@ember/application/deprecations'; * The message function is given the following arguments: * * - `type` (**String**): The error message type - * - `options` (**Object**): The validator options that were defined in the model * - `value`: The current value being evaluated - * - `context` (**Object**): Context for string replacement + * - `options` (**Object**): The validator options that were defined in the model * * The return value must be a `string`. If nothing is returned (`undefined`), * defaults to the default error message of the specified type.