From 755368fc3addb246bbc421b60e41d8c08116806b Mon Sep 17 00:00:00 2001 From: Graham Esau Date: Sun, 27 Sep 2020 10:58:51 +0100 Subject: [PATCH] v0.8.0 --- CHANGELOG.md | 3 ++- schemars/Cargo.toml | 4 ++-- schemars_derive/Cargo.toml | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8330008..4a0cd6c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,12 +1,13 @@ # Changelog -## **In-dev** - [0.8.0] +## [0.8.0] - 2020-09-27 ### Added: - `visit::Visitor`, a trait for updating a schema and all schemas it contains recursively. A `SchemaSettings` can now contain a list of visitors. - `into_object()` method added to `Schema` as a shortcut for `into::()` - Preserve order of schema properties under `preserve_order` feature flag (https://github.com/GREsau/schemars/issues/32) - `SchemaGenerator::take_definitions()` which behaves similarly to the now-removed `into_definitions()` method but without consuming the generator - `SchemaGenerator::visitors_mut()` which returns an iterator over a generator's settings's visitors +- `SchemaSettings::inline_subschemas` - enforces inlining of all subschemas instead of using references (https://github.com/GREsau/schemars/issues/44) ### Removed (**BREAKING CHANGES**): - `SchemaSettings::bool_schemas` - this has been superseded by the `ReplaceBoolSchemas` visitor diff --git a/schemars/Cargo.toml b/schemars/Cargo.toml index de6c19b..2c5d790 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.0-alpha-4" +version = "0.8.0" authors = ["Graham Esau "] edition = "2018" license = "MIT" @@ -13,7 +13,7 @@ categories = ["encoding"] build = "build.rs" [dependencies] -schemars_derive = { version = "=0.8.0-alpha-4", optional = true, path = "../schemars_derive" } +schemars_derive = { version = "=0.8.0", optional = true, path = "../schemars_derive" } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" dyn-clone = "1.0" diff --git a/schemars_derive/Cargo.toml b/schemars_derive/Cargo.toml index fcbf3c2..3206322 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.0-alpha-4" +version = "0.8.0" authors = ["Graham Esau "] edition = "2018" license = "MIT"