File tree Expand file tree Collapse file tree
server/typescript/packages/metadata/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -338,7 +338,7 @@ function checkFilterClauses(
338338 ) ;
339339 continue ;
340340 }
341- // After parse-time desugaring (normalizeFilterAttr ), every non-composition field clause
341+ // After parse-time desugaring (FilterAttr.desugar ), every non-composition field clause
342342 // is canonical { op: value } — a bare scalar should not reach here; the object guard is defensive.
343343 if ( typeof clause === "object" && clause !== null && ! Array . isArray ( clause ) ) {
344344 for ( const op of Object . keys ( clause ) ) {
Original file line number Diff line number Diff line change @@ -22,11 +22,9 @@ export class FilterAttr extends MetaAttr {
2222 }
2323
2424 override coerce ( raw : unknown ) : AttrValue {
25- // Object stored verbatim; a non-object (e.g. a legacy JSON string) is
26- // returned as-is so validateValue rejects it.
27- return typeof raw === "object" && raw !== null && ! Array . isArray ( raw )
28- ? ( raw as AttrValue )
29- : ( raw as AttrValue ) ;
25+ // Stored verbatim: an object is the canonical shape; a non-object (e.g. a
26+ // legacy JSON string) is passed through unchanged so validateValue rejects it.
27+ return raw as AttrValue ;
3028 }
3129
3230 override desugar ( value : AttrValue ) : AttrValue {
You can’t perform that action at this time.
0 commit comments