-
So, I've ran into a rather unique use case that may or may not be supported. Is it possible to validate a string field that is made optional, and if included in the request body, return an error if it…
-
```
go-diff-mod before.json before.json
```
Shows changes for a package that has different versions of the same dependency.
-
There's `UnmarshalJSON` and `UnmarshalYAML` for the unmarshalers, then there's `SetDefaults` for the https://github.com/creasty/defaults but for the validator, you need to use the `RegisterValidation`…
-
I use github.com/qiangxue/golang-restful-starter-kit bun can`t find, how can I set table_prefix from config
```
server.go > buildRouter () {
...
artistDAO := daos.NewArtistDAO()
apis.ServeArtistR…
-
# Background
There are a number of cases where we need to apply some sort of data validation:
* API requests
* Messages passed into the system
* Configurations loaded from yaml docs
Each ma…
-
Hi, is it possible to get all the errors of a field in an array instead just the first? The code I'm trying right now:
```
func (r Request) Valid() error {
return validation.ValidateStruct(&r…
-
This is my code for DAO testing
```golang
testdata.ResetDB()
rs := testdata.GetRequestScopeTest()
// I have to insert this stuff :\
_, err := testdata.DB.Begin()
if err != n…
-
-
-
Hi, thanks for this awesome library. I was just wondering if it is possible to restrict input for fields based on a set of values, like:
```
type MyInput struct {
SubId string `json:"subscriptio…