parseManifest

fun parseManifest(data: Any?, onEventIssue: (ChannelEventIssue) -> Unit = {}): BreakManifest

Validate already-decoded manifest data (a JSON object as a Map) and build a typed BreakManifest. Throws IllegalArgumentException with a message identical to the TS reference on any validation failure.


fun parseManifest(data: Any?, onEventIssue: (ChannelEventIssue) -> Unit, onSlateIssue: (SlateIssue) -> Unit): BreakManifest

parseManifest that also reports why an unusable slate was ignored (onSlateIssue); the breaks of that manifest are unaffected. A separate overload, with no defaults, so a trailing lambda of the two-argument form keeps binding to onEventIssue.