Schema
[{:db/ident :foo/bar
:db/valueType :db.type/boolean
:db/cardinality :db.cardinality/one}
{:db/ident :foo/guard
:db.entity/attrs [:foo/bar]}]
We can validate the required attribute by requesting the entity spec
{:foo/bar true
:db/ensure :foo/guard}
However the boolean value false
is interpreted as missing schema
{:foo/bar false
:db/ensure :foo/guard}
Error:
Execution error (ExceptionInfo) at datomic.core.error/raise (error.clj:55).
:db.error/entity-attr Entity -9223301668109579638 missing attributes (:foo/bar) of spec :foo/guard
Environment:
- dev-local 0.9.232