ManifestService

Parses and validates break manifests. Mirrors the validation in web/core/src/services/ManifestService.ts (parseManifest) — error messages are part of the cross-language contract and must match the TS reference byte-for-byte (the conformance harness diffs them).

Forward-compatible: unknown top-level fields are ignored.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
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.