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: (),