Skip to content

Commit 49c0b77

Browse files
authored
Merge pull request #66 from yassun7010/remove_flatten_features
feat: remove flatten features.
2 parents e5eda44 + e74bc59 commit 49c0b77

File tree

7 files changed

+2
-353
lines changed

7 files changed

+2
-353
lines changed

serde_valid/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ version.workspace = true
1515
fluent = { package = "fluent", version = "^0.16.0", optional = true }
1616
indexmap = { version = "^2.0", features = ["serde"] }
1717
itertools = "^0.12"
18-
jsonschema = { version = "^0.17", optional = true }
1918
num-traits = "^0.2"
2019
once_cell = "^1.7"
2120
paste = { workspace = true }
@@ -38,5 +37,4 @@ default = ["i128"]
3837
toml = ["serde_toml"]
3938
yaml = ["serde_yaml"]
4039
i128 = ["num-traits/i128", "indexmap/std", "serde_valid_literal/i128"]
41-
flatten = ["jsonschema"]
4240
fluent = ["dep:fluent", "serde_valid_derive/fluent"]

serde_valid/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ assert!(s.validate().is_ok());
4040
- `toml` - provide serialization/deserialization in `toml` format.
4141
- `yaml` - provide serialization/deserialization in `yaml` format.
4242
- `i128` - support `i128`/`u128` type (default).
43-
- `flatten` - change formatting to flattened error messages ( [jsonschema](https://docs.rs/jsonschema/latest/jsonschema/) crate style).
43+
- `fluent` - provide localization using [fluent](https://projectfluent.org/).
4444

4545
## Validations
4646

serde_valid/src/features.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#[cfg(feature = "flatten")]
2-
pub mod flatten;
3-
41
#[cfg(feature = "fluent")]
52
pub mod fluent;
63

serde_valid/src/features/flatten/flat_error.rs

Lines changed: 0 additions & 30 deletions
This file was deleted.

serde_valid/src/features/flatten/flat_errors.rs

Lines changed: 0 additions & 83 deletions
This file was deleted.

serde_valid/src/features/flatten/into_flat.rs

Lines changed: 0 additions & 233 deletions
This file was deleted.

serde_valid/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
//! - `toml` - provide serialization/deserialization in `toml` format.
4141
//! - `yaml` - provide serialization/deserialization in `yaml` format.
4242
//! - `i128` - support `i128`/`u128` type (default).
43-
//! - `flatten` - change formatting to flattened error messages ( [jsonschema](https://docs.rs/jsonschema/latest/jsonschema/) crate style).
43+
//! - `fluent` - provide localization using [fluent](https://projectfluent.org/).
4444
//!
4545
//! ## Validations
4646
//!

0 commit comments

Comments
 (0)