test: D1-7 enforce LiquidOperatorSubset, reject unsupported comparison operators at publish

This commit is contained in:
hugo committed 2026-05-29 22:25:06 +02:00
1 parent a9740207cc
commit d606d9b26b
4 files changed
+94 -5

No files matched your search

+4
View File
@@ -223,6 +223,10 @@ invariant LiquidOperatorSubset {
-- Special values: blank (nil/empty comparison)
-- Property access: dot notation (object.property), .size on arrays,
-- bracket notation for map lookups (map[key])
--
-- Enforced at publish/validation time (LiquidParser.validate); any other
-- comparison operator (!=, <, >=, <=, contains) is rejected even though
-- Liquex would otherwise evaluate it.
}
invariant LiquidRenderContext {