Skip to content

v0.8.1

Compare
Choose a tag to compare
@jprochazk jprochazk released this 29 Mar 15:52
· 275 commits to main since this release

Fixes

  • Errors in rules were not being propagated correctly.

Before:

#[derive(Debug, garde::Validate)]
struct Test {
    #[garde(length(min = -10))] // error: unrecognized rule
    field: String,
}

After:

#[derive(Debug, garde::Validate)]
struct Test {
    #[garde(length(min = -10))] // error: value must be a valid `usize`: invalid digit found in string
    field: String,
}

Full Changelog: https://github.com/jprochazk/garde/compare/v0.8.0..v0.8.1