govalidator icon indicating copy to clipboard operation
govalidator copied to clipboard

[Go] Package of validators and sanitizers for strings, numerics, slices and structs

Results 127 govalidator issues
Sort by recently updated
recently updated
newest added

New feature, or refactor of existing code: master/develop branch | Q | A |-------------- | ------ | Documentation | no | Bugfix | no | BC Break | no |...

This is the second highest starred validation package in Go, but it appears there is no maintainer or activity on this repo. I would use go-playground/validator (the highest starred validation...

### Bug Report Last version #### Summary The following url is reported as not a valid URL : https://[fe80::20c:29ff:fe21:8be2%25ens192]:4493/metrics

### Bug Report #### Summary IsURL is accepting "http//" as legitimate URL prefix github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 #### Current behavior ```govalidator.IsURL("http//abc.com")``` returns true. #### How to reproduce ```golang package main import (...

validator_test.go: added tests to check http|s without colons added additional check in isURL to fail on strings that contain http but no colon

Fixes: #441 * New feature, validation for -ve integer range | Q | A |-------------- | ------ | Documentation | no | Bugfix | no | BC Break | no...

| Q | A |-------------- | ------ | Documentation | no | Bugfix | yes | BC Break | 🤷 | New Feature | no | RFC | no |...

https://github.com/asaskevich/govalidator/blob/a9d515a09cc289c60d55064edec5ef189859f172/validator.go#L708 Currently, `IsHash()` parses, compiles and matches a regular expression each time, which is highly inefficient in terms of CPU and RAM. Instead, it should check the length of `str`...

### Bug Report All tags are bad. #### Summary https://go.dev/ref/mod#versions > Major version suffixes >Starting with major version 2, module paths must have a major version suffix like /v2 that...

We need to release a new version in the community. Are there any plans for a new version recently?