The Wayback Machine - https://web.archive.org/web/20200821230758/https://github.com/topics/validation
Skip to content
#

validation

Here are 3,102 public repositories matching this topic...

icyice0217
icyice0217 commented Aug 19, 2020

Hello everyone, we need add 'uz-UZ' locale in isMobilePhone.js lib to do validation for Uzbekistan mobile phones.
Country code: +998
format mobile phones: ( [+998] )? ( ( [6] ( [1] | [2] | [5] | [6] | [7] | [9] ) ) | ( [7] ( [1] | [2] | [3] | [4] | [5] | [6] | [9] ) ) | [88] | [9X] ) [XXX XXXX]
[X] phone number: 7 or 8 digits
I've made an initial expression as:
**/^(\+?998)?(6[125-79

muhammadkholidb
muhammadkholidb commented Oct 1, 2019

Package version eg. v8, v9:

v9

Issue, Question or Enhancement:

Is it possible to use oneof validation with values containing space character? Tried with single quote but it did not seem to work.

Code sample, to showcase or reproduce:

type Data struct {
    Status string `json:"status" validate:"required,oneof='Awaiting Verification' 'Verified' 'Failed Veri

Improve this page

Add a description, image, and links to the validation topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the validation topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.