MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / apply_schema_description

Function apply_schema_description

ra-rpc/src/openapi.rs:895–903  ·  view source on GitHub ↗
(schema: &mut Value, doc: &str)

Source from the content-addressed store, hash-verified

893}
894
895fn apply_schema_description(schema: &mut Value, doc: &str) {
896 let trimmed = doc.trim();
897 if trimmed.is_empty() {
898 return;
899 }
900 if let Value::Object(obj) = schema {
901 obj.insert("description".into(), Value::String(trimmed.to_string()));
902 }
903}
904
905fn builtin_type_schema(name: &str) -> Option<Value> {
906 match name {

Callers 1

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected