Skip to content

Commit 386e3d7

Browse files
committed
v0.8.12
1 parent 9dc816f commit 386e3d7

File tree

6 files changed

+13
-5
lines changed

6 files changed

+13
-5
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## [0.8.12] - 2023-02-26
4+
### Added:
5+
- Implement `JsonSchema` for `smol_str::SmolStr` (https://github.com/GREsau/schemars/pull/72)
6+
7+
### Changed:
8+
- Change `serde_json` dependency min version to 1.0.25 (was 1.0.0) (https://github.com/GREsau/schemars/pull/192)
9+
310
## [0.8.11] - 2022-10-02
411
### Added:
512
- Replace auto-inferred trait bounds with bounds specified in `#[schemars(bound = "...")]` attribute

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ Schemars can implement `JsonSchema` on types from several popular crates, enable
278278
- `enumset` - [enumset](https://crates.io/crates/enumset) (^1.0)
279279
- `rust_decimal` - [rust_decimal](https://crates.io/crates/rust_decimal) (^1.0)
280280
- `bigdecimal` - [bigdecimal](https://crates.io/crates/bigdecimal) (^0.3)
281+
- `smol_str` - [smol_str](https://crates.io/crates/smol_str) (^0.1.17)
281282

282283
For example, to implement `JsonSchema` on types from `chrono`, enable it as a feature in the `schemars` dependency in your `Cargo.toml` like so:
283284

docs/4-features.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Schemars can implement `JsonSchema` on types from several popular crates, enable
2424
- `enumset` - [enumset](https://crates.io/crates/enumset) (^1.0)
2525
- `rust_decimal` - [rust_decimal](https://crates.io/crates/rust_decimal) (^1.0)
2626
- `bigdecimal` - [bigdecimal](https://crates.io/crates/bigdecimal) (^0.3)
27+
- `smol_str` - [smol_str](https://crates.io/crates/smol_str) (^0.1.17)
2728

2829
For example, to implement `JsonSchema` on types from `chrono`, enable it as a feature in the `schemars` dependency in your `Cargo.toml` like so:
2930

schemars/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "schemars"
33
description = "Generate JSON Schemas from Rust code"
44
homepage = "https://graham.cool/schemars/"
55
repository = "https://github.com/GREsau/schemars"
6-
version = "0.8.11"
6+
version = "0.8.12"
77
authors = ["Graham Esau <gesau@hotmail.co.uk>"]
88
edition = "2018"
99
license = "MIT"
@@ -13,7 +13,7 @@ categories = ["encoding"]
1313
build = "build.rs"
1414

1515
[dependencies]
16-
schemars_derive = { version = "=0.8.11", optional = true, path = "../schemars_derive" }
16+
schemars_derive = { version = "=0.8.12", optional = true, path = "../schemars_derive" }
1717
serde = { version = "1.0", features = ["derive"] }
1818
serde_json = "1.0.25"
1919
dyn-clone = "1.0"

schemars/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,14 +273,13 @@ Schemars can implement `JsonSchema` on types from several popular crates, enable
273273
- `enumset` - [enumset](https://crates.io/crates/enumset) (^1.0)
274274
- `rust_decimal` - [rust_decimal](https://crates.io/crates/rust_decimal) (^1.0)
275275
- `bigdecimal` - [bigdecimal](https://crates.io/crates/bigdecimal) (^0.3)
276+
- `smol_str` - [smol_str](https://crates.io/crates/smol_str) (^0.1.17)
276277
277278
For example, to implement `JsonSchema` on types from `chrono`, enable it as a feature in the `schemars` dependency in your `Cargo.toml` like so:
278279
279280
```toml
280281
[dependencies]
281282
schemars = { version = "0.8", features = ["chrono"] }
282-
```
283-
284283
```
285284
*/
286285

schemars_derive/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "schemars_derive"
33
description = "Macros for #[derive(JsonSchema)], for use with schemars"
44
homepage = "https://graham.cool/schemars/"
55
repository = "https://github.com/GREsau/schemars"
6-
version = "0.8.11"
6+
version = "0.8.12"
77
authors = ["Graham Esau <gesau@hotmail.co.uk>"]
88
edition = "2018"
99
license = "MIT"

0 commit comments

Comments
 (0)