added jspg_schemas for mixer

This commit is contained in:
2026-03-15 23:03:03 -04:00
parent 2f15ae3d41
commit c529c8b8ea
2 changed files with 33 additions and 0 deletions

View File

@ -49,6 +49,22 @@ fn test_library_api() {
})
);
// 3. Validate jspg_schemas
let schemas_drop = jspg_schemas();
assert_eq!(
schemas_drop.0,
json!({
"test_schema": {
"$id": "test_schema",
"type": "object",
"properties": {
"name": { "type": "string" }
},
"required": ["name"]
}
})
);
// 4. Validate Happy Path
let happy_drop = jspg_validate("test_schema", JsonB(json!({"name": "Neo"})));
assert_eq!(