totherik / step

An Amazon States Language implementation in JS. (The beginnings of building out FaaS-agnostic Step Functions.)
53 stars 9 forks source link

Statically assess data integrity. #1

Open totherik opened 7 years ago

totherik commented 7 years ago

Currently the state language definition is validated for structure using JSONSchema, but no validation of data integrity is done, e.g. StartState and subsequent Next states are not validated prior to running the state machine, etc.

This would be useful to ensure a machine can be run to completion prior to invoking it.

totherik commented 7 years ago

https://github.com/totherik/step/blob/381065dd6ac3bd10fbf286e6f22cdaaa61cabe9a/src/states/index.js#L26-L35