diff --git a/crates/oapi-macros/src/response/link.rs b/crates/oapi-macros/src/response/link.rs index fcbc198b5..492be6635 100644 --- a/crates/oapi-macros/src/response/link.rs +++ b/crates/oapi-macros/src/response/link.rs @@ -9,7 +9,7 @@ use crate::{parse_utils, AnyValue, Server}; /// ("name" = (link)) #[derive(Debug)] -pub(crate) struct LinkTuple(pub parse_utils::LitStrOrExpr, pub Link); +pub(crate) struct LinkTuple(pub(crate) parse_utils::LitStrOrExpr, pub(crate) Link); impl Parse for LinkTuple { fn parse(input: syn::parse::ParseStream) -> syn::Result { diff --git a/crates/oapi-macros/src/schema_type.rs b/crates/oapi-macros/src/schema_type.rs index 66ad4ceac..54fb3f56c 100644 --- a/crates/oapi-macros/src/schema_type.rs +++ b/crates/oapi-macros/src/schema_type.rs @@ -43,8 +43,8 @@ impl ToTokens for SchemaTypeInner { /// Tokenizes OpenAPI data type correctly according to the Rust type pub(crate) struct SchemaType<'a> { - pub path: &'a syn::Path, - pub nullable: bool, + pub(crate) path: &'a syn::Path, + pub(crate) nullable: bool, } impl SchemaType<'_> {