Compare commits

...

2 Commits

Author SHA1 Message Date
25239d635b version: 1.0.64 2026-03-16 00:19:44 -04:00
3bec6a6102 fixed jspg_schemas returning a drop now 2026-03-16 00:19:32 -04:00
3 changed files with 17 additions and 12 deletions

View File

@ -121,9 +121,10 @@ pub fn jspg_schemas() -> JsonB {
Some(engine) => {
let schemas_json = serde_json::to_value(&engine.database.schemas)
.unwrap_or(serde_json::Value::Object(serde_json::Map::new()));
JsonB(schemas_json)
let drop = crate::drop::Drop::success_with_val(schemas_json);
JsonB(serde_json::to_value(drop).unwrap())
}
None => JsonB(serde_json::Value::Object(serde_json::Map::new())),
None => jspg_failure(),
}
}
@ -138,9 +139,10 @@ pub fn jspg_stems() -> JsonB {
Some(engine) => {
let stems_json = serde_json::to_value(&engine.database.stems)
.unwrap_or(serde_json::Value::Object(serde_json::Map::new()));
JsonB(stems_json)
let drop = crate::drop::Drop::success_with_val(stems_json);
JsonB(serde_json::to_value(drop).unwrap())
}
None => JsonB(serde_json::Value::Object(serde_json::Map::new())),
None => jspg_failure(),
}
}

View File

@ -54,6 +54,8 @@ fn test_library_api() {
assert_eq!(
schemas_drop.0,
json!({
"type": "drop",
"response": {
"test_schema": {
"$id": "test_schema",
"type": "object",
@ -62,6 +64,7 @@ fn test_library_api() {
},
"required": ["name"]
}
}
})
);

View File

@ -1 +1 @@
1.0.63
1.0.64