feat: Add support for aide

This commit is contained in:
gengteng
2023-12-18 16:45:31 +08:00
parent edddee3ccb
commit 053d3b5dc1
5 changed files with 36 additions and 1 deletions

View File

@@ -25,6 +25,7 @@ use std::ops::{Deref, DerefMut};
/// If using arguments, you must pass the arguments to Garde extractor via state, meaning implementing `FromRef<StateType>` for your validation arguments type.
///
#[derive(Debug, Clone, Copy, Default)]
#[cfg_attr(feature = "aide", derive(aide::OperationIo))]
pub struct Garde<E>(pub E);
impl<E> Deref for Garde<E> {