add test for Garde

This commit is contained in:
gengteng
2023-10-07 21:11:26 +08:00
parent 21ee4e7913
commit 2f1aa1060f
16 changed files with 112 additions and 78 deletions

View File

@@ -44,9 +44,9 @@
use crate::{HasValidate, HasValidateArgs};
use axum_yaml::Yaml;
use validator::{Validate, ValidateArgs};
use validator::ValidateArgs;
impl<T: Validate> HasValidate for Yaml<T> {
impl<T> HasValidate for Yaml<T> {
type Validate = T;
fn get_validate(&self) -> &T {
&self.0