refactor: merge cached_schema_for_type into schema_for_type (#581)

This commit is contained in:
Dale Seo 2025-12-09 20:04:52 -05:00 • committed by GitHub
commit 8d33b155b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -154,8 +154,8 @@ where
self.attr.description = Some(description.into());
self
}
pub fn parameters<T: JsonSchema>(mut self) -> Self {
self.attr.input_schema = schema_for_type::<T>().into();
pub fn parameters<T: JsonSchema + 'static>(mut self) -> Self {
self.attr.input_schema = schema_for_type::<T>();
self
}
pub fn parameters_value(mut self, schema: serde_json::Value) -> Self {