@@ -34,6 +34,13 @@ let s = SampleEnum::Named {
3434assert! (s . validate (). is_ok ());
3535```
3636
37+ ## Feature Flags
38+
39+ - ` toml ` - provide serialization/deserialization in ` toml ` format.
40+ - ` yaml ` - provide serialization/deserialization in ` yaml ` format.
41+ - ` i128 ` - support ` i128 ` /` u128 ` type.
42+ - ` flatten ` - change formatting to flattened error messages ( [ jsonschema] ( https://docs.rs/jsonschema/latest/jsonschema/ ) crate style).
43+
3744## Validations
3845
3946Serde Valid support standard validation based JSON Schema.
@@ -257,7 +264,9 @@ assert!(s.validate().is_ok());
257264```
258265
259266## Validation Errors Format
267+
260268### Named Struct
269+
261270Field errors are output to ` properties ` .
262271
263272``` rust
@@ -287,6 +296,7 @@ assert_eq!(
287296```
288297
289298### Unnamed Struct
299+
290300Field errors are output to ` items ` . The key for ` items ` is guaranteed to be a string of positive numbers.
291301
292302``` rust
@@ -319,6 +329,7 @@ assert_eq!(
319329```
320330
321331### New Type
332+
322333Field errors are output to ` errors ` .
323334
324335``` rust
@@ -342,6 +353,7 @@ assert_eq!(
342353```
343354
344355### Named Enum
356+
345357Variant errors are output to ` properties ` .
346358
347359``` rust
@@ -378,6 +390,7 @@ assert_eq!(
378390```
379391
380392### Unnamed Enum
393+
381394Variant errors are output to ` items ` . The key for ` items ` is guaranteed to be a string of positive numbers.
382395
383396``` rust
@@ -412,6 +425,7 @@ assert_eq!(
412425```
413426
414427### Newtype Enum
428+
415429Variant errors are output to ` errors ` .
416430
417431``` rust
0 commit comments