diff --git a/CHANGELOG.md b/CHANGELOG.md index de382808..8f59e662 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [0.8.12] - 2023-02-26 +### Added: +- Implement `JsonSchema` for `smol_str::SmolStr` (https://github.com/GREsau/schemars/pull/72) + +### Changed: +- Change `serde_json` dependency min version to 1.0.25 (was 1.0.0) (https://github.com/GREsau/schemars/pull/192) + ## [0.8.11] - 2022-10-02 ### Added: - Replace auto-inferred trait bounds with bounds specified in `#[schemars(bound = "...")]` attribute diff --git a/README.md b/README.md index c9fe0d85..7ff05e0f 100644 --- a/README.md +++ b/README.md @@ -278,6 +278,7 @@ Schemars can implement `JsonSchema` on types from several popular crates, enable - `enumset` - [enumset](https://crates.io/crates/enumset) (^1.0) - `rust_decimal` - [rust_decimal](https://crates.io/crates/rust_decimal) (^1.0) - `bigdecimal` - [bigdecimal](https://crates.io/crates/bigdecimal) (^0.3) +- `smol_str` - [smol_str](https://crates.io/crates/smol_str) (^0.1.17) For example, to implement `JsonSchema` on types from `chrono`, enable it as a feature in the `schemars` dependency in your `Cargo.toml` like so: diff --git a/docs/4-features.md b/docs/4-features.md index 4f848c81..dc3cc850 100644 --- a/docs/4-features.md +++ b/docs/4-features.md @@ -24,6 +24,7 @@ Schemars can implement `JsonSchema` on types from several popular crates, enable - `enumset` - [enumset](https://crates.io/crates/enumset) (^1.0) - `rust_decimal` - [rust_decimal](https://crates.io/crates/rust_decimal) (^1.0) - `bigdecimal` - [bigdecimal](https://crates.io/crates/bigdecimal) (^0.3) +- `smol_str` - [smol_str](https://crates.io/crates/smol_str) (^0.1.17) For example, to implement `JsonSchema` on types from `chrono`, enable it as a feature in the `schemars` dependency in your `Cargo.toml` like so: diff --git a/schemars/Cargo.toml b/schemars/Cargo.toml index 9f3fedd5..ad972dd9 100644 --- a/schemars/Cargo.toml +++ b/schemars/Cargo.toml @@ -3,7 +3,7 @@ name = "schemars" description = "Generate JSON Schemas from Rust code" homepage = "https://graham.cool/schemars/" repository = "https://github.com/GREsau/schemars" -version = "0.8.11" +version = "0.8.12" authors = ["Graham Esau "] edition = "2018" license = "MIT" @@ -13,7 +13,7 @@ categories = ["encoding"] build = "build.rs" [dependencies] -schemars_derive = { version = "=0.8.11", optional = true, path = "../schemars_derive" } +schemars_derive = { version = "=0.8.12", optional = true, path = "../schemars_derive" } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0.25" dyn-clone = "1.0" diff --git a/schemars/src/lib.rs b/schemars/src/lib.rs index 2094c428..796ec272 100644 --- a/schemars/src/lib.rs +++ b/schemars/src/lib.rs @@ -273,14 +273,13 @@ Schemars can implement `JsonSchema` on types from several popular crates, enable - `enumset` - [enumset](https://crates.io/crates/enumset) (^1.0) - `rust_decimal` - [rust_decimal](https://crates.io/crates/rust_decimal) (^1.0) - `bigdecimal` - [bigdecimal](https://crates.io/crates/bigdecimal) (^0.3) +- `smol_str` - [smol_str](https://crates.io/crates/smol_str) (^0.1.17) For example, to implement `JsonSchema` on types from `chrono`, enable it as a feature in the `schemars` dependency in your `Cargo.toml` like so: ```toml [dependencies] schemars = { version = "0.8", features = ["chrono"] } -``` - ``` */ diff --git a/schemars_derive/Cargo.toml b/schemars_derive/Cargo.toml index 82b803e6..06caaa80 100644 --- a/schemars_derive/Cargo.toml +++ b/schemars_derive/Cargo.toml @@ -3,7 +3,7 @@ name = "schemars_derive" description = "Macros for #[derive(JsonSchema)], for use with schemars" homepage = "https://graham.cool/schemars/" repository = "https://github.com/GREsau/schemars" -version = "0.8.11" +version = "0.8.12" authors = ["Graham Esau "] edition = "2018" license = "MIT"