Skip to content

Commit

Permalink
Merge pull request #90 from yassun7010/chore_fix_order
Browse files Browse the repository at this point in the history
feat: change validation order.
  • Loading branch information
yassun7010 authored Jan 6, 2025
2 parents 72360b5 + 899b436 commit 8b5ed56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/serde_valid_derive/src/derive/enum_derive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ fn expand_enum_variant_named_fields_validation(
let mut __rule_vec_errors = ::serde_valid::validation::VecErrors::new();
let mut __property_vec_errors_map = ::serde_valid::validation::PropertyVecErrorsMap::new();

#enum_validates
#validates
#enum_validates
#rules

if !(__rule_vec_errors.is_empty() && __property_vec_errors_map.is_empty()) {
Expand Down

0 comments on commit 8b5ed56

Please sign in to comment.