pub fn import_scip_json_str(
json: &str,
) -> Result<ScipProjectIndex, ScipImportError>Expand description
Deserializes the crate’s compact SCIP JSON schema.
Unknown fields are accepted by Serde defaults, while every declared field is required unless its type’s deserializer says otherwise. No semantic range, path, symbol, or relation validation is performed.
§Errors
Returns ScipImportError::Json with Serde’s owned error text for invalid
JSON or an incompatible shape.
§Examples
use ailloli_ui_editor::code::import_scip_json_str;
let index = import_scip_json_str(r#"{"metadata":{"project_root":"/repo","tool_info":"tool"},"documents":[]}"#).unwrap();
assert_eq!(index.metadata.project_root, "/repo");