diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-05 03:09:16 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-05 03:09:16 +0300 |
commit | 4fd77e112fac07c5b904668b7d5f500589f8d2d5 (patch) | |
tree | a7f82bdc0eaba09f1aaafc484509bfe4b664c954 /doc/development/api_styleguide.md | |
parent | 8a55c3263f1f37fdc9ee772bc0d38133dfe94495 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/development/api_styleguide.md')
-rw-r--r-- | doc/development/api_styleguide.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/development/api_styleguide.md b/doc/development/api_styleguide.md index fcdda7f8138..dd652ccd587 100644 --- a/doc/development/api_styleguide.md +++ b/doc/development/api_styleguide.md @@ -207,6 +207,12 @@ guide on how you can add a new custom validator. checks if the value of the given parameter is either an `Array`, `None`, or `Any`. It allows only either of these mentioned values to move forward in the request. +- `EmailOrEmailList`: + + The [`EmailOrEmailList` validator](https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/api/validations/validators/email_or_email_list.rb) + checks if the value of a string or a list of strings contains only valid + email addresses. It allows only lists with all valid email addresses to move forward in the request. + ### Adding a new custom validator Custom validators are a great way to validate parameters before sending |