Fork me on GitHub
#schema
<
2022-12-27
>
rmxm17:12:51

hey, does anyone have a quick snippet to express schema for a map, where key has to be present, but can be either nil or some-val. I tried wrapping with maybe, but then it falls to accepting nil-punned (get) neglecting :required on the subschema. I was thinking of maybe doing either on null and s/Str subschemas, both having :required set true - but cannot find anything matching "must be nil" (schema/Any is to permissive).