From 77c7aa9beb331c3e31d9e6c256db3aad1480a77e Mon Sep 17 00:00:00 2001 From: Graham Esau Date: Sun, 21 Mar 2021 20:24:32 +0000 Subject: [PATCH] Update changelog --- CHANGELOG.md | 2 ++ schemars/src/gen.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b60f0d8..42cd847 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ ### Fixed - Fix use of `#[serde(transparent)]` in combination with `#[schemars(with = ...)]` (https://github.com/GREsau/schemars/pull/67) +- Fix clippy `field_reassign_with_default` warning in schemars_derive generated code in rust <1.51 (https://github.com/GREsau/schemars/pull/65) +- Prevent stack overflow when using `inline_subschemas` with recursive types ## [0.8.0] - 2020-09-27 ### Added: diff --git a/schemars/src/gen.rs b/schemars/src/gen.rs index b7cdae7..5f8ac3b 100644 --- a/schemars/src/gen.rs +++ b/schemars/src/gen.rs @@ -41,6 +41,8 @@ pub struct SchemaSettings { pub visitors: Vec>, /// Inline all subschemas instead of using references. /// + /// Some references may still be generated in schemas for recursive types. + /// /// Defaults to `false`. pub inline_subschemas: bool, _hidden: (),