We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 884772a commit 9165d87Copy full SHA for 9165d87
1 file changed
crates/rustapi-core/src/extract.rs
@@ -266,9 +266,7 @@ impl<T: DeserializeOwned + Validatable + Send> FromRequest for ValidatedJson<T>
266
let value: T = json::from_slice(&body)?;
267
268
// Then, validate it using the unified Validatable trait
269
- if let Err(e) = value.do_validate() {
270
- return Err(e);
271
- }
+ value.do_validate()?;
272
273
Ok(ValidatedJson(value))
274
}
0 commit comments