From 351ff1572a5b7f0675dcabd985e0af7687198afe Mon Sep 17 00:00:00 2001 From: Graham Esau Date: Mon, 9 Dec 2019 21:06:44 +0000 Subject: [PATCH] v0.6.0 --- CHANGELOG.md | 6 +++--- schemars/Cargo.toml | 4 ++-- schemars_derive/Cargo.toml | 2 +- schemars_derive/src/attr/mod.rs | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 13aa3635..8de8b105 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,15 +1,15 @@ # Changelog -## [0.6.0] - TBD +## [0.6.0] - 2019-12-09 ### Added: - When deriving `JsonSchema`, the schema's `title` and `description` are now set from `#[doc]` comments (https://github.com/GREsau/schemars/issues/7) -- When deriving `JsonSchema` on structs using a `#[serde(default)]` attribute, the schema's properties will now include `default` whenever the default is not null (https://github.com/GREsau/schemars/issues/6) +- When deriving `JsonSchema` on structs using a `#[serde(default)]` attribute, the schema's properties will now include `default`, unless the default value is skipped by the field's `skip_serializing_if` function (https://github.com/GREsau/schemars/issues/6) ### Changed: - When the `option_nullable` setting is enabled (e.g. for openapi 3), schemas for `Option` will no longer inline `T`'s schema when it should be referenceable. ## [0.5.1] - 2019-10-30 ### Fixed: -- Added missing doc comment for "title" schema property +- Added missing doc comment for `title` schema property ## [0.5.0] - 2019-10-30 ### Added: diff --git a/schemars/Cargo.toml b/schemars/Cargo.toml index 9ced40e8..66c19915 100644 --- a/schemars/Cargo.toml +++ b/schemars/Cargo.toml @@ -2,7 +2,7 @@ name = "schemars" description = "Generate JSON Schemas from Rust code" repository = "https://github.com/GREsau/schemars" -version = "0.6.0-alpha-2" +version = "0.6.0" authors = ["Graham Esau "] edition = "2018" license = "MIT" @@ -12,7 +12,7 @@ categories = ["encoding"] build = "build.rs" [dependencies] -schemars_derive = { version = "0.6.0-alpha-2", path = "../schemars_derive" } +schemars_derive = { version = "0.6.0", path = "../schemars_derive" } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" chrono = { version = "0.4", default-features = false, optional = true } diff --git a/schemars_derive/Cargo.toml b/schemars_derive/Cargo.toml index e9e676b4..b31667cf 100644 --- a/schemars_derive/Cargo.toml +++ b/schemars_derive/Cargo.toml @@ -2,7 +2,7 @@ name = "schemars_derive" description = "Macros for #[derive(JsonSchema)], for use with schemars" repository = "https://github.com/GREsau/schemars" -version = "0.6.0-alpha-2" +version = "0.6.0" authors = ["Graham Esau "] edition = "2018" license = "MIT" diff --git a/schemars_derive/src/attr/mod.rs b/schemars_derive/src/attr/mod.rs index 9db24f2a..2c11908c 100644 --- a/schemars_derive/src/attr/mod.rs +++ b/schemars_derive/src/attr/mod.rs @@ -12,7 +12,7 @@ pub fn get_with_from_attrs(field: &syn::Field) -> Option i == "schemars" || i == "serde", None => false, })