-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: adding validate and unload plugin schema functionality #15
Conversation
return nil, tostring(errors:schema_violation(err_t)) | ||
end | ||
return plugin_schema.name, nil | ||
end |
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.
In future versions of goks
we might want to consider removing the code duplication in load_plugin_schema
and update the signature to require the plugin_name
and plugin_schema_string
. If we decide to keep the schema validation in the load_plugin_schema
function we should look at using local functions and exposing them in the return in order to remove some duplicated code.
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. Go ahead and merge after this change.
2c2ac15
to
6edbe46
Compare
These feature additions allow for plugin: * validating of schema; validates and tests loading of plugin schema * unloading of plugin schemas; useful for removing a plugin schema during runtime
6edbe46
to
8ce5395
Compare
These feature additions allow for plugin: