diff --git a/xsd-parser/src/generator/validator.rs b/xsd-parser/src/generator/validator.rs index 4bfd225..0bf0cf5 100644 --- a/xsd-parser/src/generator/validator.rs +++ b/xsd-parser/src/generator/validator.rs @@ -129,6 +129,7 @@ fn gen_min_length_validation(value: &str, name: &str) -> String { format!( r#" + #[allow(clippy::len_zero)] if self.{name}.len() < {value} {{ return Err(format!("MinLength validation error. \nExpected: {name} length >= {value} \nActual: {name} length == {{}}", self.{name}.len())); }}"#,