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
{{ message }}
This repository has been archived by the owner on Mar 14, 2022. It is now read-only.
Currently, the
validators
property of ComponentDefinitions is a map from key to function. This means that arbitrary keys cannot be validated.Proposed changes:
validators
->validator
validator
is now a function that takes in the entire data dict, and returns a bool (similar tot
library)This change also has the neat side-effect of supporting
t
directly, since users can now pass theirt
typecheck directly tovalidator
.I'm not entirely sure what to name the argument - we may want to add support for validating the entity that a component is attached to.
The text was updated successfully, but these errors were encountered: