fixed issue with filter generation where filters or conditions are used internally

This commit is contained in:
2026-06-11 20:40:27 -04:00
parent 1d56bae9a5
commit 5af2399e3b
3 changed files with 5 additions and 2 deletions

View File

@ -159,7 +159,9 @@ impl Schema {
},
"null" => None,
custom => {
if db.enums.contains_key(custom) {
if custom.ends_with(".condition") || custom.ends_with(".filter") {
Some(vec![custom.to_string()])
} else if db.enums.contains_key(custom) {
Some(vec![format!("{}.condition", custom)])
} else {
// Assume anything else is a Relational cross-boundary that already has its own .filter dynamically built