Skip to content

Commit 282c94a

Browse files
Merge branch 'go-playground:master' into master
2 parents 1a51f5b + a947377 commit 282c94a

File tree

18 files changed

+5874
-1419
lines changed

18 files changed

+5874
-1419
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package validator
22
=================
33
<img align="right" src="logo.png">[![Join the chat at https://gitter.im/go-playground/validator](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/go-playground/validator?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
4-
![Project status](https://img.shields.io/badge/version-10.20.0-green.svg)
4+
![Project status](https://img.shields.io/badge/version-10.22.0-green.svg)
55
[![Build Status](https://travis-ci.org/go-playground/validator.svg?branch=master)](https://travis-ci.org/go-playground/validator)
66
[![Coverage Status](https://coveralls.io/repos/go-playground/validator/badge.svg?branch=master&service=github)](https://coveralls.io/github/go-playground/validator?branch=master)
77
[![Go Report Card](https://goreportcard.com/badge/github.com/go-playground/validator)](https://goreportcard.com/report/github.com/go-playground/validator)
@@ -163,6 +163,7 @@ validate := validator.New(validator.WithRequiredStructEnabled())
163163
| btc_addr_bech32 | Bitcoin Bech32 Address (segwit) |
164164
| credit_card | Credit Card Number |
165165
| mongodb | MongoDB ObjectID |
166+
| mongodb_connection_string | MongoDB Connection String |
166167
| cron | Cron |
167168
| spicedb | SpiceDb ObjectID/Permission/Type |
168169
| datetime | Datetime |

_examples/translations/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ type Address struct {
2727
Phone string `validate:"required"`
2828
}
2929

30-
// use a single instance , it caches struct info
30+
// use a single instance, it caches struct info
3131
var (
3232
uni *ut.UniversalTranslator
3333
validate *validator.Validate
3434
)
3535

3636
func main() {
3737

38-
// NOTE: ommitting allot of error checking for brevity
38+
// NOTE: omitting allot of error checking for brevity
3939

4040
en := en.New()
4141
uni = ut.New(en, en)

0 commit comments

Comments
 (0)