From 386e3d7f5ac601795fb4e247291bbef31512ded3 Mon Sep 17 00:00:00 2001 From: Graham Esau Date: Sun, 26 Feb 2023 20:57:53 +0000 Subject: [PATCH] v0.8.12 --- CHANGELOG.md | 7 +++++++ README.md | 1 + docs/4-features.md | 1 + schemars/Cargo.toml | 4 ++-- schemars/src/lib.rs | 3 +-- schemars_derive/Cargo.toml | 2 +- 6 files changed, 13 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index de38280..8f59e66 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 c9fe0d8..7ff05e0 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 4f848c8..dc3cc85 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 9f3fedd..ad972dd 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 2094c42..796ec27 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 82b803e..06caaa8 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"