fix: flag schema derive on schemars feature (#966)
This commit is contained in:
parent
9e3de344f4
commit
60d3e77f52
2 changed files with 3 additions and 3 deletions
|
|
@ -34,7 +34,7 @@ pub mod transport;
|
|||
pub use pastey::paste;
|
||||
#[cfg(all(feature = "macros", feature = "server"))]
|
||||
pub use rmcp_macros::*;
|
||||
#[cfg(any(feature = "server", feature = "schemars"))]
|
||||
#[cfg(feature = "schemars")]
|
||||
pub use schemars;
|
||||
#[cfg(feature = "macros")]
|
||||
pub use serde;
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ macro_rules! object {
|
|||
/// without returning any specific data.
|
||||
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq, Copy, Eq)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
#[cfg_attr(feature = "server", derive(schemars::JsonSchema))]
|
||||
#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
|
||||
#[expect(clippy::exhaustive_structs, reason = "intentionally exhaustive")]
|
||||
pub struct EmptyObject {}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue