File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ assert!(s.validate().is_ok());
4545
4646Serde Valid support standard validation based JSON Schema.
4747
48- | Type | Serde Valid(validate derive) | Serde Valid(validate trait) | JSON Schema |
48+ | Type | Serde Valid (validate derive) | Serde Valid (validate trait) | JSON Schema |
4949| :-----: | :----------------------------------- | :--------------------------- | :-------------------------------------------------------------------------------------------- |
5050| String | ` #[validate(max_length = 5)] ` | [ ` ValidateMaxLength ` ] | [ maxLength] ( https://json-schema.org/understanding-json-schema/reference/string#length ) |
5151| String | ` #[validate(min_length = 5)] ` | [ ` ValidateMinLength ` ] | [ minLength] ( https://json-schema.org/understanding-json-schema/reference/string#length ) |
@@ -64,7 +64,7 @@ Serde Valid support standard validation based JSON Schema.
6464
6565In addition, [ serde_valid::utils] [ module@crate::utils ] provides a type of validation not described in the JSON schema specification.
6666
67- | Type | Serde Valid(validate derive) | Serde Valid(validate trait) |
67+ | Type | Serde Valid (validate derive) | Serde Valid (validation function) |
6868| :-------------------------------: | :-------------------------------------------------------- | :----------------------------------------------------------------------- |
6969| [ Duration] [ `std::time::Duration` ] | ` #[validate(custom(duration_maximum(SECOND)))] ` | [ duration_maximum] [ `crate::utils::duration_maximum` ] |
7070| [ Duration] [ `std::time::Duration` ] | ` #[validate(custom(duration_minimum(ZERO)))] ` | [ duration_minimum] [ `crate::utils::duration_minimum` ] |
Original file line number Diff line number Diff line change 4545//!
4646//! Serde Valid support standard validation based JSON Schema.
4747//!
48- //! | Type | Serde Valid(validate derive) | Serde Valid(validate trait) | JSON Schema |
48+ //! | Type | Serde Valid (validate derive) | Serde Valid (validate trait) | JSON Schema |
4949//! | :-----: | :----------------------------------- | :--------------------------- | :-------------------------------------------------------------------------------------------- |
5050//! | String | `#[validate(max_length = 5)]` | [`ValidateMaxLength`] | [maxLength](https://json-schema.org/understanding-json-schema/reference/string#length) |
5151//! | String | `#[validate(min_length = 5)]` | [`ValidateMinLength`] | [minLength](https://json-schema.org/understanding-json-schema/reference/string#length) |
6464//!
6565//! In addition, [serde_valid::utils][module@crate::utils] provides a type of validation not described in the JSON schema specification.
6666//!
67- //! | Type | Serde Valid(validate derive) | Serde Valid(validate trait) |
67+ //! | Type | Serde Valid (validate derive) | Serde Valid (validation function) |
6868//! | :-------------------------------: | :-------------------------------------------------------- | :----------------------------------------------------------------------- |
6969//! | [Duration][`std::time::Duration`] | `#[validate(custom(duration_maximum(SECOND)))]` | [duration_maximum][`crate::utils::duration_maximum`] |
7070//! | [Duration][`std::time::Duration`] | `#[validate(custom(duration_minimum(ZERO)))]` | [duration_minimum][`crate::utils::duration_minimum`] |
You can’t perform that action at this time.
0 commit comments