From 33e54d3c424078e94cd0c4ac33023d1b8a7df275 Mon Sep 17 00:00:00 2001 From: Graham Esau Date: Sun, 26 Sep 2021 18:39:11 +0100 Subject: [PATCH] v0.8.6 --- CHANGELOG.md | 4 ++++ schemars/Cargo.toml | 4 ++-- schemars_derive/Cargo.toml | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7198d6b..bc8f504 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## [0.8.6] - 2021-09-26 +### Fixed: +- Use `oneOf` instead of `anyOf` for enums when possible (https://github.com/GREsau/schemars/issues/108) + ## [0.8.5] - 2021-09-20 ### Fixed: - Allow fields with plain `#[validate]` attributes (https://github.com/GREsau/schemars/issues/109) diff --git a/schemars/Cargo.toml b/schemars/Cargo.toml index 3a384e6..53a6584 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.5" +version = "0.8.6" authors = ["Graham Esau "] edition = "2018" license = "MIT" @@ -13,7 +13,7 @@ categories = ["encoding"] build = "build.rs" [dependencies] -schemars_derive = { version = "=0.8.5", optional = true, path = "../schemars_derive" } +schemars_derive = { version = "=0.8.6", 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 7216a30..d4be61a 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.5" +version = "0.8.6" authors = ["Graham Esau "] edition = "2018" license = "MIT"