-
Notifications
You must be signed in to change notification settings - Fork 56
Rsdk 2071 support modular validation and implicit dependencies #244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rsdk 2071 support modular validation and implicit dependencies #244
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking great! I know this is in draft but thought I'd leave a few comments to potentially discuss offline.
We'll also want to update the module example README to describe the process of registering a custom validator function. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking great 🧑🔧 ! Just a few more nits.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Great job + thanks for this 🧑🔧
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a small nit, but otherwise good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! had a suggestion to reduce the amount of registries
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One last request around checking that the registration actually contains something to register
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
RSDK-2071
Changes in this PR:
lookup
andregister
functions to work with and store resource validators.validate_config
function that allows a module to look up and run (if any) a stored resource validator.ValidateConfig
to callvalidate_config
.validate_config
.validate_config
with exampleGizmo
module that stores a validator during init.README.md
cc @benjirewis