kernel-sidecar icon indicating copy to clipboard operation
kernel-sidecar copied to clipboard

Feature: Optional validator for all Actions

Open kafonek opened this issue 1 year ago • 0 comments

I want something I can add to all Actions to validate the attached handlers. Some of this functionality would overlap with potentially adding .default_handlers, I'm not sure where the boundaries would be there. The Validator would take the Action as its main argument. For instance:

  • Make sure every Action has a specific handler like Status handling attached to it
  • Watch for unhandled messages across multiple handlers -- e.g. is update_display_data not handled by any of the attached handlers

kafonek avatar Mar 15 '23 14:03 kafonek