refactor: merge cached_schema_for_type into schema_for_type (#581)
This commit is contained in:
parent
bce0555068
commit
8d33b155b6
1 changed files with 91 additions and 30 deletions
|
|
@ -220,7 +220,7 @@ pub fn tool(attr: TokenStream, input: TokenStream) -> syn::Result<TokenStream> {
|
|||
if let Some(params_ty) = params_ty {
|
||||
// if found, use the Parameters schema
|
||||
syn::parse2::<Expr>(quote! {
|
||||
rmcp::handler::server::common::cached_schema_for_type::<#params_ty>()
|
||||
rmcp::handler::server::common::schema_for_type::<#params_ty>()
|
||||
})?
|
||||
} else {
|
||||
// if not found, use a default empty JSON schema object
|
||||
|
|
|
|||
Loading…
Reference in a new issue