Jan Procházka

Results 82 comments of Jan Procházka

Please post a code example which shows what you're trying to do. How does `__iter` help you build a path?

`Report` is pretty much the same thing as a `Vec`. What is `ValidationError` used for?

> any estimate on when we can have it? Whenever someone gets around to it! Feel free to submit a PR, it's a great first issue.

Hi! Thanks for taking a stab at this. Initially, the proc macro would emit the `MIN` and `MAX` constant values if they were not provided by the user. That has...

The problem is that you'd also need to handle `Bound::Excluded`, which requires arithmetic, and we don't need it, because `range` is always inclusive. `Option` is the same as `Bound` without...

What I'm saying is that I don't think the idea with `RangeBounds` from the opening post makes sense anymore. It's important to me that the error message specifies whether the...

> I wonder if it makes sense in the end to allow the "object as a value" in my API. Unless I'm misunderstanding something, with this approach, the user must...

There's also the question of how to test this. It doesn't seem like `trybuild` exposes the ability to change the feature set used to compile a specific file. Do you...

> for example, to check that different fields are consistent with each other This would be possible with https://github.com/jprochazk/garde/issues/2 Is there a different use-case for container-level rules besides field matching?...

Your use-case is already supported, although completely by accident: ```rust #[derive(garde::Validate)] #[garde(allow_unvalidated)] struct Test { principal: i32, #[garde(range(min=0, max=self.principal))] deposit: i32, } ``` Derive macro expansion ```rust impl ::garde::Validate for...