(schema: &mut Value, doc: &str)
| 893 | } |
| 894 | |
| 895 | fn 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 | |
| 905 | fn builtin_type_schema(name: &str) -> Option<Value> { |
| 906 | match name { |
no test coverage detected