BooleanFilterSchema
const BooleanFilterSchema: Union<readonly [Struct<{ kind: mutableKey<Literal<"boolean">>; operator: mutableKey<Literals<readonly ["eq", "ne"]>>; value: mutableKey<Boolean>;}>, Struct<{ kind: mutableKey<Literal<"boolean">>; operator: mutableKey<Literals<readonly ["isNull", "isNotNull"]>>;}>]>;Defined in: filters/schemas-effect-v4.ts:167
Validates a boolean-kind field filter (the model’s BooleanFilter):
eq/ne with a boolean value, or a unary operator.
Example
Section titled “Example”import { Schema } from "effect";import { BooleanFilterSchema } from "@xtandard/lib/filters/effect/v4";
const input = { kind: "boolean", operator: "eq", value: true };Schema.decodeUnknownSync(BooleanFilterSchema)(input);// → `input`, typed as `BooleanFilter`Schema.is(BooleanFilterSchema)({ kind: "boolean", operator: "eq", value: "true" });// → false (a string, not a boolean)