diff --git a/utoipa-gen/src/component/features.rs b/utoipa-gen/src/component/features.rs index 02b5a650..661095d4 100644 --- a/utoipa-gen/src/component/features.rs +++ b/utoipa-gen/src/component/features.rs @@ -230,7 +230,7 @@ impl ToTokensDiagnostics for Feature { // inline feature is ignored by `ToTokens` TokenStream::new() } - Feature::NoRecursion(_) => return Err(Diagnostics::new("NoRecurse does not support `ToTokens`")), + Feature::NoRecursion(_) => return Err(Diagnostics::new("NoRecursion does not support `ToTokens`")), Feature::IntoParamsNames(_) => { return Err(Diagnostics::new("Names feature does not support `ToTokens`") .help("Names is only used with IntoParams to artificially give names for unnamed struct type `IntoParams`.")) diff --git a/utoipa-gen/src/lib.rs b/utoipa-gen/src/lib.rs index fac2775b..800001a8 100644 --- a/utoipa-gen/src/lib.rs +++ b/utoipa-gen/src/lib.rs @@ -327,7 +327,7 @@ static CONFIG: once_cell::sync::Lazy = /// syntax][derive@ToSchema#schemadiscriminator-syntax]. /// /// ### `#[schema(discriminator)]` syntax -/// +/// /// Discriminator can **only** be used with enums having **`#[serde(untagged)]`** attribute and /// each variant must have only one unnamed field schema reference to type implementing /// _`ToSchema`_. @@ -898,7 +898,7 @@ static CONFIG: once_cell::sync::Lazy = /// _**Use `no_recursion` attribute to break from looping schema tree e.g. `Pet` -> `Owner` -> /// `Pet`.**_ /// -/// `no_recurse` attribute can be provided on named field of a struct, on unnamed struct or unnamed +/// `no_recursion` attribute can be provided on named field of a struct, on unnamed struct or unnamed /// enum variant. It must be provided in case of looping schema tree in order to stop recursion. /// Failing to do so will cause runtime **panic**. /// ```rust