You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
EntityFactory currently has a prepareRlayFormat method that is applied to the payload or payload part that comes in as input for the .create and .from methods.
The purpose of that is that higher-level entities can be created, e.g. a DataPropertyAssertion that enforces a property cid or a subject cid like 0x00.
The purpose of the prepareRlayFormat and extended attributes and methods is three-fold and a bit tangled up atm: validate schema, default values, enforce values.
But in its current form it introduces a lot of code that is hard to test, not fully tested, and introduces a big amount of complexity.
Would be great to think more about this and refactor it in a future release.
The text was updated successfully, but these errors were encountered:
EntityFactory
currently has aprepareRlayFormat
method that is applied to thepayload
orpayload
part that comes in as input for the.create
and.from
methods.The purpose of that is that higher-level entities can be created, e.g. a
DataPropertyAssertion
that enforces aproperty
cid or asubject
cid like0x00
.The purpose of the
prepareRlayFormat
and extended attributes and methods is three-fold and a bit tangled up atm: validate schema, default values, enforce values.But in its current form it introduces a lot of code that is hard to test, not fully tested, and introduces a big amount of complexity.
Would be great to think more about this and refactor it in a future release.
The text was updated successfully, but these errors were encountered: