Autolab icon indicating copy to clipboard operation
Autolab copied to clipboard

Better arity and return type checking for hooks

Open damianhxy opened this issue 3 months ago • 0 comments

Currently, there is insufficient validation that a user-defined assessment hook takes the correct number of arguments (arity) or that it returns the expected type.

This can lead to a difficult-to-recover situation, especially if it has to do with a hook like listOptions which is called every time the user views an assessment's landing page. (they would have to navigate directly to the edit page to reload the config file)

damianhxy avatar Mar 30 '24 20:03 damianhxy