MaibornWolff / alt-core-js

Acceptance & Load testing framework
https://www.npmjs.com/package/@maibornwolff/alt-core-js
MIT License
7 stars 1 forks source link

Add enum types for messageType and validate user data when / before constructing actions #66

Open johannesloher opened 4 years ago

johannesloher commented 4 years ago

Currently, the messageTypeof MQTT actions is simply a string. We should add an enum type containing all the possible values and validate the user input (action definition) against that when or before constructing an action. (see https://github.com/MaibornWolff/alt-core-js/pull/62#discussion_r334917536)