Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: go-playground/validator
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: go-playground/validator
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v8
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.
  • 5 commits
  • 3 files changed
  • 3 contributors

Commits on Aug 8, 2016

  1. Update README.md

    Dean Karn authored Aug 8, 2016
    Copy the full SHA
    fd299f5 View commit details

Commits on Jul 30, 2017

  1. Backport false possitive test fixes

    Dean Karn committed Jul 30, 2017
    Copy the full SHA
    a298cfc View commit details
  2. Merge pull request #297 from go-playground/v8-backport-test-fixes

    Backport false positive test fixes
    Dean Karn authored Jul 30, 2017
    Copy the full SHA
    5f1438d View commit details

Commits on Jan 30, 2019

  1. fix tag name from v8

    sssinsi committed Jan 30, 2019
    Copy the full SHA
    139e773 View commit details

Commits on Feb 12, 2019

  1. Merge pull request #442 from sssinsi/v8-fix-printascii-tag

    fix tag name in doc
    Dean Karn authored Feb 12, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    0ec626c View commit details
Showing with 7 additions and 8 deletions.
  1. +2 −3 README.md
  2. +1 −1 doc.go
  3. +4 −4 validator_test.go
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
Package validator
================
<img align="right" src="https://raw.githubusercontent.com/go-playground/validator/v8/logo.png">
[![Join the chat at https://gitter.im/bluesuncorp/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)
![Project status](https://img.shields.io/badge/version-8.18.1-green.svg)
<img align="right" src="https://raw.githubusercontent.com/go-playground/validator/v8/logo.png">[![Join the chat at https://gitter.im/bluesuncorp/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)
![Project status](https://img.shields.io/badge/version-8.18.2-green.svg)
[![Build Status](https://semaphoreci.com/api/v1/projects/ec20115f-ef1b-4c7d-9393-cc76aba74eb4/530054/badge.svg)](https://semaphoreci.com/joeybloggs/validator)
[![Coverage Status](https://coveralls.io/repos/go-playground/validator/badge.svg?branch=v8&service=github)](https://coveralls.io/github/go-playground/validator?branch=v8)
[![Go Report Card](https://goreportcard.com/badge/github.com/go-playground/validator)](https://goreportcard.com/report/github.com/go-playground/validator)
2 changes: 1 addition & 1 deletion doc.go
Original file line number Diff line number Diff line change
@@ -665,7 +665,7 @@ Printable ASCII
This validates that a string value contains only printable ASCII characters.
NOTE: if the string is blank, this validates as true.
Usage: asciiprint
Usage: printascii
Multi-Byte Characters
8 changes: 4 additions & 4 deletions validator_test.go
Original file line number Diff line number Diff line change
@@ -4839,7 +4839,7 @@ func TestIsGt(t *testing.T) {
errs = validate.Field(tm, "gt")
Equal(t, errs, nil)

t2 := time.Now().UTC()
t2 := time.Now().UTC().Add(-time.Hour)

errs = validate.Field(t2, "gt")
NotEqual(t, errs, nil)
@@ -4875,7 +4875,7 @@ func TestIsGte(t *testing.T) {
errs := validate.Field(t1, "gte")
Equal(t, errs, nil)

t2 := time.Now().UTC()
t2 := time.Now().UTC().Add(-time.Hour)

errs = validate.Field(t2, "gte")
NotEqual(t, errs, nil)
@@ -4920,7 +4920,7 @@ func TestIsLt(t *testing.T) {
i := true
PanicMatches(t, func() { validate.Field(i, "lt") }, "Bad field type bool")

t1 := time.Now().UTC()
t1 := time.Now().UTC().Add(-time.Hour)

errs = validate.Field(t1, "lt")
Equal(t, errs, nil)
@@ -4957,7 +4957,7 @@ func TestIsLte(t *testing.T) {
i := true
PanicMatches(t, func() { validate.Field(i, "lte") }, "Bad field type bool")

t1 := time.Now().UTC()
t1 := time.Now().UTC().Add(-time.Hour)

errs := validate.Field(t1, "lte")
Equal(t, errs, nil)