-
-
Notifications
You must be signed in to change notification settings - Fork 499
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Description of the feature
I'm trying to add error extensions to input validation errors and it seems like there's no way to do that now. I tried to make an extension with a validation
hook but it looks like validation
runs before the input validation and there is no hook for input validation. Can you add one?
Code example (if possible)
#[async_trait::async_trait]
pub trait Extension: Sync + Send + 'static {
// ...
async fn input_validation(
&self,
ctx: &ExtensionContext<'_>,
next: NextValidation<'_>,
) -> Result<_, Vec<InputValueError>> {
next.run(ctx).await
}
}
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request