validation-library
Here are 227 public repositories matching this topic...
type Item struct {
Bt int `valid:"range(1|100)"`
}
func main() {
t := Item{-1}
ok, err := govalidator.ValidateStruct(t)
fmt.Println(ok, err)
}
output:Bt: Validator range(1|100) doesn't support kind int;
-
Updated
Jun 12, 2020 - Swift
Pattern anchor
When reading pattern from HTML it is used directly as a regular expression, which is not correct. The spec says
The compiled pattern regular expression, when matched against a string, must have its start anchored to the start of the string and its end anchored to the end of the string.
This implies that the regular
The current master README on the front-page of this github repo is misleading with respect to isValidHostname as it points to unreleased changes that deprecate isValid and introduce isValidHostname… However those changes are still unreleased.
So if users of the latest tldjs@2.3.1 come to this repo and check out the readme they might easily get confused.
How about releasing a new vers
-
Updated
Jan 6, 2020 - Java
Similar to issue #18, add methods in the collection_ktx package.
-
Updated
Jul 3, 2020 - JavaScript
-
Updated
May 18, 2020 - PHP
-
Updated
Jun 25, 2020 - PHP
Improve JsDoc
-
Updated
Jun 17, 2020 - JavaScript
Is there any documentation on using valiktor with @WebMvcTest based Spring tests?
I've added @Import(ValiktorAutoConfiguration::class, ValiktorWebMvcAutoConfiguration::class) but it doesn't seem to use the valiktor constraint violation exception handlers.
-
Updated
Mar 19, 2020 - TypeScript
-
Updated
May 15, 2015 - Ruby
-
Updated
Nov 25, 2019 - Swift
I have defined rules like so (two places, becasue I am unsure which -- not clear according to documentation):
['nuxt-validate', {
lang: 'en',
rules: ['email', 'min', 'max', 'confirmed', 'numeric'],
nuxti18n: {
locale: {
'da': 'da',
'en': 'en'
},
rules: ['email', 'min', 'max', 'confirmed', 'numeric']
},
mode: 'eager',
classes: {
valid: 'i
-
Updated
May 29, 2020 - TypeScript
-
Updated
May 8, 2018 - Kotlin
validate_docs
Validar uma lista de tuplas de documentos.
A seguir, consta um jeito de como essa funcionalidade deve funcionar:
from validate_docbr as docbr
# Documentos
documentos = [
(docbr.CPF, "012.345.678-90"),
(docbr.CNPJ, "01.234.567/8901-23"),
(docbr.CPF, "01234567891"),
]
# Validar documentos
validacoes = docbr.validate_docs( documentos )
# Output
# [True, Fals-
Updated
Jun 19, 2020 - Python
-
Updated
Jul 1, 2020 - Java
-
Updated
Aug 25, 2019 - TypeScript
-
Updated
Feb 11, 2019 - JavaScript
Add Windows samples
Is your feature request related to a problem? Please describe.
There are no samples for WPF, Windows Forms and UWP now. Let's fix that.
Describe the solution you'd like
We should create samples for WPF and WF.
Describe suggestions on how to achieve the feature
Probably we should port existing XF sample to WPF and WF.
Worth [sharing existing view models](https://github
Okay, so if you pass a filterWith rule, that function should return true|false.
However, you can throw a custom error in that function instead. It's just that the customer error needs to implement toJSON and return { field, message }.
-
Updated
Jul 1, 2020 - TypeScript
-
Updated
May 16, 2020 - Perl
-
Updated
Jun 27, 2020 - HTML
-
Updated
Sep 27, 2018 - JavaScript
Improve this page
Add a description, image, and links to the validation-library topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the validation-library topic, visit your repo's landing page and select "manage topics."
Versions
Describe the bug
I have a
BaseInput.vuecomponent which has one default<slot></slot>wrapped in a<validation-provider>. When it has errors it will show the error message inside a<div class="error-message"></div>.But, in my tests, when I pass a
<input>to the default slo