validation
Here are 3,045 public repositories matching this topic...
Document extensions
-
Updated
Jul 12, 2020 - TypeScript
The currently published docs on redux-form.com has its Examples page returning a "404" page:
https://redux-form.com/8.3.0/examples/
And, if you click on the example links in the nav sidebar, such as the Simple Example at https://redux-form.com/8.3.0/examples/simple/ then all of the sidebar links become /8.2.2/ instead of /8.3.0/
This is a:
-
enhancement
-
CakePHP Version: any (collections).
Since you have already used psalm and it's templates feature, I would like to suggest you to type all the collections library
Versions
- vee-validate: 3.1.3
- vue: 2.6.10
- vue-jest: 3.0.5
- @vue/test-utils: ^1.0.0-beta.31
Describe the bug
I have a BaseInput.vue component 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
Hey Erik! How's it been?
Are you submitting a bug report or a feature request?
Feature
What is the current behavior?
No mention of withTypes in the documentation.
What is the expected behavior?
༼ つ ◕_◕ ༽つ
I just found out about this from a co-worker and am not even sure yet what it exactly was! Excited to see..
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 Validator::CurrencyCode()->validate('')
The behavior of this validation changes from v1.1.29 to v1.1.31.
valid-1.1.29: Validator::CurrencyCode()->validate('') RESULT : FALSE
valid-1.1.31: Validator::CurrencyCode()->validate('') RESULT : TRUE
This should be documented somewhere, it took a while to find out.
-
Updated
Jul 12, 2020 - JavaScript
The fact that exclude takes dotted notation for nested fields, but unknown does not apply to nested fields, means that exclude doesn't work for nested fields in some common use cases unless the nested schema(s) have the desired Meta.unknown setting, and then they are not runtime-flexible, which is the great benefit of Schema and load taking exclude. Somewhat new to marshmallow so mayb
E.g.
check('email').isEmail().withMessage({
message: 'Not an email',
errorCode: ErrorCodes.NOT_EMAIL,
})To support express-validator/express-validator#667 (comment).
-
Updated
Jul 10, 2020 - TypeScript
With this vulnerability, an attacker can bypass any security checks enforced by class-validator.
When class-validator is used to validate user-input, the attributes in the user-input object will be transformed into the validation class instance.
However, the transforming procedure will overwrite the internal attribute of validation class instance (e.g., constructor attribute) if the attacke
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
May 14, 2020 - JavaScript
func commonInit() {
self.title = "Choose your country"
public override func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? {
if isFiltering {
return nil
} else if section == 0, hasCurrent {
return "Current"
} else if section == 0, !hasCurrent, hasCommon {
return "C
Document the API
Feature Request
It would be great to include API documentation. The Usage docs are great as a walkthrough, but when you want to go fast ("what is the name for the Field parameter for a constant value?"), API docs provide a faster answer.
Another use case: I want to inspect the __fields__ on a model, and had to read the code to get the attribute name I was looking for.
API docs would
This is more of a development problem and does not affect users as it is with dev dependencies. When cloning the repository and running yarn, yarn warns about incorrect peer dependencies:
$ git clone https://github.com/apiaryio/dredd.git dredd-clean
Cloning into 'dredd-clean'...
remote: Enumerating objects: 54, done.
remote: Counting objects: 100% (54/54), done.
remote: Compressin🚀 Feature request
Current Behavior
flow(
SomeIOType.decode,
... etc
)
Accessing .decode of a type by passing it, causes lint warning:
warning Avoid referencing unbound methods which may cause unintentional scoping of this @typescript-eslint/unbound-method
However the function is specifically bound: this.decode = this.decode.bind(this);
Desi
Custom error message
Thanks for the library really useful and simple! I so requests to add functionality to pass custom error message, and it was closed with introducing labels.
But be able to create custom
DateType and DateTimeType and subclasses use datetime.datetime.strptime, which in turn uses the dateutil library. Unfortunately, this library is much slower at ISO8601 date parsing than C-based alternatives (in particular, ciso8601):
import datetime
import ciso8601
%timeit datetime.datetime.strptime('2018-01-01', '%Y-%m-%d')
# 10.5 µs ± 440 ns per loop (mean ± std. dev. of 7 r
-
Updated
Jun 30, 2020 - PHP
It doesn't seem clear in the spec that a schema evaluates to true if all its keywords also evaluate to true. i.e. an allOf behaviour.
# doc and more doc
Add more doc in the code urgent the Validator class
This tools is great, we can define and validate various config from file, env, cli arg... and we can even put a short doc on each field.
But what if I want to display a clear and concise doc reference on a website on a cli usage?
Should this package be able to handle that? If not, is it compatible with other packages doing that need?
Thanks
-
Updated
May 28, 2020 - Go
-
Updated
Jun 12, 2020 - Swift
-
Updated
Jul 2, 2020 - PHP
Improve this page
Add a description, image, and links to the validation topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the validation topic, visit your repo's landing page and select "manage topics."
e.g.
isPassportNumber, etc.