v0.8.12
This commit is contained in:
parent
9dc816fafc
commit
386e3d7f5a
6 changed files with 13 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
||||
|
|
|
@ -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 <gesau@hotmail.co.uk>"]
|
||||
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"
|
||||
|
|
|
@ -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"] }
|
||||
```
|
||||
|
||||
```
|
||||
*/
|
||||
|
||||
|
|
|
@ -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 <gesau@hotmail.co.uk>"]
|
||||
edition = "2018"
|
||||
license = "MIT"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue