This PR adds an isValidPayload method to AbstractAppliance which ensures that the payload is a valid type for the appliance.
It uses an assertion here (thus triggering an error) because submitting a payload of an invalid type for validation is likely a signal of a more serious problem.
Issue #41
Description
This PR adds an
isValidPayload
method toAbstractAppliance
which ensures that the payload is a valid type for the appliance.It uses an assertion here (thus triggering an error) because submitting a payload of an invalid type for validation is likely a signal of a more serious problem.
Due Diligence Checklist
Steps to Test
yarn test
Deploy Notes
None
Related Issues
Resolves #41