more filter fixes

This commit is contained in:
2026-04-17 07:43:19 -04:00
parent c2267b68d8
commit 69bd726b25
10 changed files with 75 additions and 26 deletions

View File

@ -92,6 +92,8 @@ fn test_library_api() {
"puncs": {},
"relations": {
"fk_test_target": {
"id": "11111111-1111-1111-1111-111111111111",
"type": "relation",
"constraint": "fk_test_target",
"destination_columns": ["id"],
"destination_type": "target_schema",
@ -144,7 +146,7 @@ fn test_library_api() {
"target": { "type": ["target_schema.filter", "null"] },
"type": { "type": ["string.condition", "null"] }
},
"type": "object"
"type": "filter"
}
},
"sensitive": false,
@ -181,7 +183,7 @@ fn test_library_api() {
"properties": {
"value": { "type": ["number.condition", "null"] }
},
"type": "object"
"type": "filter"
}
},
"sensitive": false,

View File

@ -17,7 +17,7 @@ pub struct Case {
// For Query
#[serde(default)]
pub filters: Option<serde_json::Value>,
pub filter: Option<serde_json::Value>,
// For Merge & Validate
#[serde(default)]
@ -122,7 +122,7 @@ impl Case {
use crate::queryer::Queryer;
let queryer = Queryer::new(db.clone());
let result = queryer.query(&self.schema_id, self.filters.as_ref());
let result = queryer.query(&self.schema_id, self.filter.as_ref());
let return_val = if let Some(expect) = &self.expect {
if let Err(e) = expect.assert_drop(&result) {