Skip to content

Conversation

@maratori
Copy link
Contributor

Fix #122

Add method Skip.When() to be able skip validation based on condition.
It' necessary in cases of nested structs validation. Because When(..., Skip) is not the same as Skip.When(...) (see #122).

Skip.When() determines if all rules following it should be skipped
@coveralls
Copy link

Coverage Status

Coverage increased (+0.003%) to 99.336% when pulling 06f4b6f on maratori:skip-when into 6a5d431 on go-ozzo:master.

@qiangxue
Copy link
Member

Excellent work! Thank you very much!

@qiangxue qiangxue merged commit b589ba5 into go-ozzo:master Aug 13, 2020
@maratori maratori deleted the skip-when branch August 15, 2020 22:01
ltns35 pushed a commit to ltns35/ozzo-validation that referenced this pull request Jun 5, 2022
Skip.When() determines if all rules following it should be skipped
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants