Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sha256 (and sha***) is documented but not supported #944

Closed
2 tasks done
petitout opened this issue May 13, 2022 · 3 comments
Closed
2 tasks done

sha256 (and sha***) is documented but not supported #944

petitout opened this issue May 13, 2022 · 3 comments

Comments

@petitout
Copy link

petitout commented May 13, 2022

  • I have looked at the documentation here first?
  • I have looked at the examples provided that may showcase my question here?

Package version eg. v9, v10:

v10

Issue, Question or Enhancement:

sha256 (and sha***) is documented but not supported

Code sample, to showcase or reproduce:

type MyStruct struct {
	Hash string `validate:"sha256"`
}

fails with

Undefined validation function 'sha256' on field 'Hash'
@sdillen
Copy link
Contributor

sdillen commented May 24, 2022

Most of this hash validations where just added a couple of days ago (see #875). You need to make sure that you point to the latest version of this package in your go.mod.

It will be most likely something like this:

+ require github.com/go-playground/validator/v10 v10.11.0
- require github.com/go-playground/validator/v10 v10.10.0

@jmvbxx
Copy link

jmvbxx commented Dec 2, 2022

I am not able to reproduce the above error using the most up-to-date version. Is this issue good to close?

@zemzale
Copy link
Member

zemzale commented Dec 27, 2022

Closing this as not reproducible.

@zemzale zemzale closed this as completed Dec 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants