Skip to content
#

validation

Here are 2,941 public repositories matching this topic...

vee-validate
Merott
Merott commented May 2, 2020

Versions

  • vee-validate: 3.3.0

Documentation issue

I've been looking for a way to debounce running an expensive custom validator, and after some digging, I found the debounce prop, but couldn't find any documentation for it.

Is there a reason it was left out of the documentation?

react-final-form
quicksnap
quicksnap commented Apr 9, 2020

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..

deschmih
deschmih commented Apr 24, 2020

Package version eg. v8, v9:

v9

Issue, Question or Enhancement:

If a fqdn starts with an integer f.e. "0.de.pool.ntp.org", the validation fails. The example "0.de.pool.ntp.org" is a valid ntp-server (see https://www.pool.ntp.org/zone/de).

Code sample, to showcase or reproduce:

package main

import(
	"fmt"
    "gopkg.in/go-playground/validator.v9"
)

type Settin
alexconrad
alexconrad commented Dec 13, 2019

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.

psverkada
psverkada commented Jan 14, 2020

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

express-validator
xiaofen9
xiaofen9 commented Oct 19, 2019

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

kylef
kylef commented Dec 11, 2019

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
charlax
charlax commented Mar 25, 2020

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

patroza
patroza commented Mar 28, 2020

🚀 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

tetraptych
tetraptych commented Nov 11, 2017

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
soullivaneuh
soullivaneuh commented Sep 5, 2019

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

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.