Skip to content

Commit 0a9301a

Browse files
committed
docs: update.
1 parent 310baa8 commit 0a9301a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

serde_valid/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ assert!(s.validate().is_ok());
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) |
@@ -64,7 +64,7 @@ Serde Valid support standard validation based JSON Schema.
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`] |

serde_valid/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
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) |
@@ -64,7 +64,7 @@
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`] |

0 commit comments

Comments
 (0)