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

OR operator produces invalid tag names in validation errors #1323

Open
Hades32 opened this issue Sep 30, 2024 · 0 comments
Open

OR operator produces invalid tag names in validation errors #1323

Hades32 opened this issue Sep 30, 2024 · 0 comments

Comments

@Hades32
Copy link

Hades32 commented Sep 30, 2024

Package version eg. v9, v10:

v10.22.1

Issue, Question or Enhancement:

This should either be two failed validations, each with the contains tag or an "OR" tag with an array as param

Code sample, to showcase or reproduce:

	type input struct {
		OrOperator string `validate:"omitempty,http_url,contains=discord|contains=guilded"`
	}
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

1 participant