Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: remove flatten features. #66

Merged
merged 1 commit into from
May 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions serde_valid/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ version.workspace = true
fluent = { package = "fluent", version = "^0.16.0", optional = true }
indexmap = { version = "^2.0", features = ["serde"] }
itertools = "^0.12"
jsonschema = { version = "^0.17", optional = true }
num-traits = "^0.2"
once_cell = "^1.7"
paste = { workspace = true }
Expand All @@ -38,5 +37,4 @@ default = ["i128"]
toml = ["serde_toml"]
yaml = ["serde_yaml"]
i128 = ["num-traits/i128", "indexmap/std", "serde_valid_literal/i128"]
flatten = ["jsonschema"]
fluent = ["dep:fluent", "serde_valid_derive/fluent"]
2 changes: 1 addition & 1 deletion serde_valid/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ assert!(s.validate().is_ok());
- `toml` - provide serialization/deserialization in `toml` format.
- `yaml` - provide serialization/deserialization in `yaml` format.
- `i128` - support `i128`/`u128` type (default).
- `flatten` - change formatting to flattened error messages ( [jsonschema](https://docs.rs/jsonschema/latest/jsonschema/) crate style).
- `fluent` - provide localization using [fluent](https://projectfluent.org/).

## Validations

Expand Down
3 changes: 0 additions & 3 deletions serde_valid/src/features.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#[cfg(feature = "flatten")]
pub mod flatten;

#[cfg(feature = "fluent")]
pub mod fluent;

Expand Down
30 changes: 0 additions & 30 deletions serde_valid/src/features/flatten/flat_error.rs

This file was deleted.

83 changes: 0 additions & 83 deletions serde_valid/src/features/flatten/flat_errors.rs

This file was deleted.

233 changes: 0 additions & 233 deletions serde_valid/src/features/flatten/into_flat.rs

This file was deleted.

2 changes: 1 addition & 1 deletion serde_valid/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
//! - `toml` - provide serialization/deserialization in `toml` format.
//! - `yaml` - provide serialization/deserialization in `yaml` format.
//! - `i128` - support `i128`/`u128` type (default).
//! - `flatten` - change formatting to flattened error messages ( [jsonschema](https://docs.rs/jsonschema/latest/jsonschema/) crate style).
//! - `fluent` - provide localization using [fluent](https://projectfluent.org/).
//!
//! ## Validations
//!
Expand Down
Loading