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
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue