sanitization
Here are 75 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
Aug 13, 2020 - Go
-
Updated
Nov 11, 2020 - JavaScript
-
Updated
Nov 29, 2020 - PHP
-
Updated
Jan 1, 2019 - PHP
-
Updated
Aug 6, 2020 - HTML
-
Updated
Aug 15, 2020 - Python
-
Updated
Nov 2, 2020 - PHP
-
Updated
Dec 4, 2020 - TypeScript
-
Updated
Sep 7, 2020 - Go
-
Updated
Oct 17, 2020 - TypeScript
-
Updated
Oct 26, 2018 - Python
-
Updated
Sep 9, 2020 - JavaScript
Parameters should be able to support these declaratively.
I'm thinking along these lines:
params do
requires :name, :string, only: ~w(john mary)
requires :profession, :string, except: ~w(student engineer)
requires :email, :string, matches: ~r/.+@.+/
endThe best place to introduce this is during the schema definition step.
-
Updated
Sep 9, 2020 - PHP
-
Updated
Dec 2, 2020 - Go
-
Updated
Jun 9, 2020 - Crystal
-
Updated
Mar 2, 2017 - PHP
-
Updated
Sep 26, 2020 - PHP
-
Updated
Dec 28, 2017 - Swift
-
Updated
Jul 25, 2018 - Python
-
Updated
Mar 11, 2019 - JavaScript
-
Updated
Sep 15, 2020 - Crystal
-
Updated
Jan 8, 2019 - C
-
Updated
Apr 24, 2020 - Java
Improve this page
Add a description, image, and links to the sanitization topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the sanitization topic, visit your repo's landing page and select "manage topics."
e.g.
isPassportNumber, etc.